/* Dunkelmark: Handy-GUI im Stil eines großen Mittelaltertitels.
   Holzrahmen mit Messingbeschlägen, Pergamentflächen, Medaillons, Titel über dem Rahmen,
   Pergamentleiste oben mit Wappenring, braune Tab-Leiste unten mit erhobenem Kartenschild. */
:root {
  --bg: #0b0908; --leather: #1c1512; --leather-2: #261d18;
  --gold: #c9a24f; --gold-hi: #f0d78a; --gold-lo: #7a5c1f; --gold-dim: rgba(201,162,79,.35);
  --parch: #e9dcbf; --parch-2: #d9c89f; --parch-ink: #2b1d12; --parch-mute: #6f5a40; --parch-line: rgba(111,90,64,.55);
  --ink: #ece2cc; --mute: #b3a58b; --dim: #7b6f5e;
  --good: #8fb573; --warn: #d9a441; --bad: #c9644f; --red: #8a2b1e; --shadow-c: #8e74c9;
  --wood: #c07f44; --stone-r: #a39f95; --iron: #93adc8; --grain: #dcb44a;
  --font-display: "Cinzel", "Palatino Linotype", Georgia, serif; --font-body: "Crimson Pro", Georgia, serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.35 var(--font-body); font-weight: 500; -webkit-font-smoothing: antialiased; overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
input, textarea, select { font: inherit; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.engr { filter: drop-shadow(0 1px 0 rgba(255,235,180,.22)) drop-shadow(0 -1px 0 rgba(0,0,0,.7)); }
.caps { font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* App-Gerüst */
.app { position: relative; z-index: 1; height: 100%; max-width: 480px; margin: 0 auto; display: grid; grid-template-rows: 1fr auto; }
.view { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.view.flush { overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; }
.pscreen { display: grid; gap: 14px; padding: 4px 10px 14px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 8px; }
.head h2 { margin: 0; font: 600 15px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.head .caps { color: var(--mute); }

/* Meldungen */
.flashes { display: grid; gap: 6px; padding: 10px 10px 0; }
.flash { padding: 8px 12px; font-size: 14.5px; font-style: italic; color: var(--parch-ink); background: linear-gradient(180deg, var(--parch), var(--parch-2)); border-left: 3px solid var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.flash-error { border-left-color: var(--red); color: var(--red); font-style: normal; font-weight: 700; }
.flash-info { border-left-color: #3b5a8a; }

/* Holzrahmen mit Messingbeschlägen, Titel außerhalb über dem Rahmen */
.panel { position: relative; margin-top: 40px; padding: 9px; background: repeating-linear-gradient(90deg, #3d2b1b 0, #33241a 5px, #3a2919 9px, #2e2015 15px, #392818 22px), #33241a; border: 1px solid #120c08; box-shadow: inset 1px 1px 0 rgba(255,215,160,.16), inset -1px -1px 0 rgba(0,0,0,.6), 0 10px 26px rgba(0,0,0,.6); overflow: visible; }
.panel::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.015 .5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .8 0 0 0 0 .5 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='200' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.panel.nt { margin-top: 0; }
.plate { position: absolute; z-index: 3; width: 18px; height: 18px; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); box-shadow: 0 1px 2px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.plate::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cc, var(--gold-lo)); }
.plate.tl { top: -2px; left: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.plate.tr { top: -2px; right: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.plate.bl { bottom: -2px; left: -2px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.plate.br { bottom: -2px; right: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.plaque { position: absolute; left: 0; right: 0; top: -34px; height: 24px; margin: 0; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-hi); text-shadow: 0 1px 0 #000, 0 0 10px rgba(201,162,79,.35); font: 600 13.5px var(--font-display); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.plaque::before, .plaque::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo)); }
.plaque::after { background: linear-gradient(90deg, var(--gold-lo), transparent); }
.plaque .i { color: var(--gold); font-size: 15px; }

/* Pergament */
.sheetp { background: linear-gradient(180deg, var(--parch), var(--parch-2)); color: var(--parch-ink); box-shadow: inset 0 0 30px rgba(120,85,40,.25), inset 0 0 0 1px rgba(0,0,0,.35); position: relative; padding: 10px 12px; }
.sheetp::after { content: ""; position: absolute; inset: 0; background: var(--noise); pointer-events: none; }
.sheetp > * { position: relative; z-index: 1; }
.sheetp .seg { margin: 0 0 12px; }
.sheetp p { margin: 0; }
.sheetp .muted, .pmute { color: var(--parch-mute); font-style: italic; }
.hdr { font: 600 8.5px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--parch-mute); padding: 10px 0 4px; border-bottom: 1px solid rgba(111,90,64,.5); }
.hdr:first-child { padding-top: 0; }
.rule { height: 1px; margin: 10px 0; background: linear-gradient(90deg, transparent, var(--gold-lo) 30%, var(--gold-lo) 70%, transparent); position: relative; }
.rule::after { content: "◆"; position: absolute; left: 50%; top: -7px; transform: translateX(-50%); font-size: 8px; color: var(--gold); background: var(--parch-2); padding: 0 6px; }

/* Medaillons: runde Bildplätze mit Goldring, später Grafiken */
.med { position: relative; width: 56px; height: 56px; flex: none; }
.med .img { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); display: grid; place-items: center; color: var(--gold); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(240,215,138,.15), inset 0 -8px 12px rgba(0,0,0,.5); }
.med .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.med svg.ring { position: absolute; inset: 0; width: 56px; height: 56px; transform: rotate(-90deg); }
.med svg.ring circle { fill: none; }
.med svg.ring .rim { stroke: var(--gold-lo); stroke-width: 3; }
.med svg.ring .arc { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 163; }
.med svg.ring .arc.steel { stroke: #6f8aa6; }
.med svg.ring .arc.green { stroke: #5f8a4a; }
.med.sm { width: 46px; height: 46px; }
.med.sm svg.ring { width: 46px; height: 46px; }
.med.sm svg.ring .arc { stroke-dasharray: 132; }
.med.sm .img { font-size: 18px; }
.med.free .img { background: none; box-shadow: none; color: rgba(111,90,64,.7); border: 1.5px dashed rgba(111,90,64,.6); inset: 3px; }
.med.hot .img { box-shadow: inset 0 0 0 1px rgba(240,215,138,.15), inset 0 -8px 12px rgba(0,0,0,.5), 0 0 14px rgba(201,162,79,.55); }
.med.lock .img { filter: grayscale(.8); opacity: .6; }
.med.done .img { box-shadow: inset 0 0 0 1px rgba(240,215,138,.15), inset 0 -8px 12px rgba(0,0,0,.5), 0 0 12px rgba(201,162,79,.45); }
.med .img.rare { background: radial-gradient(circle at 50% 35%, #3a2f5a, #141010 75%); color: #c9b6ff; }
.med .lv, .med .cnt { position: absolute; right: -3px; bottom: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1305; font: 700 10px var(--font-display); display: grid; place-items: center; border: 1px solid var(--gold-lo); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.med .cnt.top { right: -3px; top: -3px; bottom: auto; background: radial-gradient(circle at 35% 35%, #d4664f, #7a241a); color: #fff; border-color: #3a120c; min-width: 18px; height: 18px; font-size: 9px; }
.med .lk { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: #6f5a40; color: #e9dcbf; display: grid; place-items: center; font-size: 9px; }
.med .chk, .med .sl { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d4664f, #7a241a); display: grid; place-items: center; color: #f3d2c8; font-size: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.med .sl.g { background: radial-gradient(circle at 35% 35%, var(--gold-hi), var(--gold-lo)); color: #1b1305; }
.med.win .rim { stroke: #5f8a4a; } .med.win .img { color: #8fb573; }
.med.loss .rim { stroke: #a63d2f; } .med.loss .img { color: #e07a6a; }
.med.dark .rim { stroke: #6e51b0; } .med.dark .img { color: #b39cff; }
.med.scout .rim { stroke: #5b86a6; } .med.scout .img { color: #93adc8; }
.med.steel .rim { stroke: #5b86a6; }
.med .img.wood { color: var(--wood); } .med .img.stone { color: var(--stone-r); } .med .img.iron { color: var(--iron); } .med .img.grain { color: var(--grain); } .med .img.fame { color: var(--gold-hi); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--gold-lo); font: 600 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); background: linear-gradient(180deg, #3a2d22, #1a1310); box-shadow: inset 0 1px 0 rgba(240,215,138,.15), 0 3px 0 #0a0807, 0 5px 12px rgba(0,0,0,.5); transition: transform .08s, box-shadow .08s; text-shadow: 0 1px 0 #000; text-decoration: none; cursor: pointer; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(240,215,138,.15), 0 1px 0 #0a0807; }
.btn.primary { color: #1b1305; text-shadow: 0 1px 0 rgba(255,245,210,.6); background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 50%, #a9822f 55%, var(--gold-lo) 100%); border-color: #5c4414; box-shadow: inset 0 1px 0 rgba(255,245,210,.85), inset 0 -2px 0 rgba(0,0,0,.25), 0 3px 0 #3d2c0b, 0 5px 12px rgba(0,0,0,.5); }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 11px; font-size: 9.5px; }
.btn:disabled, .pbtn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gold-lo); font: 600 9px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #1b1305; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #a9822f 55%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255,245,210,.8), 0 2px 0 #4a3812; cursor: pointer; white-space: nowrap; text-decoration: none; }
.pbtn.ghost { color: var(--parch-ink); background: linear-gradient(180deg, #d8c59b, #c9b385); }
.pbtn.danger { color: #f3d2c8; background: linear-gradient(180deg, #a63d2f, #7a241a); border-color: #4a1510; }
.pbtn.block { width: 100%; }
form.inline { display: inline; }
.stamp { display: inline-block; padding: 1px 6px; border: 1.5px solid; border-radius: 3px; font: 700 8px var(--font-display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-4deg); white-space: nowrap; }
.stamp.run { color: #8a2b1e; border-color: #8a2b1e; }
.stamp.ride { color: #4a5a8a; border-color: #4a5a8a; }
.stamp.free { color: #3f6f2f; border-color: #3f6f2f; }
.stamp.wait { color: #6f5a40; border-color: #6f5a40; }
.stamp.hostile { color: #8a2b1e; border-color: #8a2b1e; background: rgba(138,43,30,.12); }
.seg { display: flex; border: 1px solid var(--gold-lo); background: rgba(0,0,0,.4); }
.seg button { flex: 1; padding: 7px 4px; color: var(--mute); font: 600 9.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; border-left: 1px solid rgba(201,162,79,.2); }
.seg button:first-child { border-left: 0; }
.seg button.on { color: #1b1305; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.sheetp .seg { background: rgba(255,255,255,.2); }
.sheetp .seg button { color: var(--parch-mute); }
.sheetp .seg button.on { color: #1b1305; }
.sw { width: 42px; height: 22px; border: 1px solid var(--gold-lo); background: rgba(111,90,64,.35); position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); flex: none; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: linear-gradient(180deg, #a08a66, #6f5a40); transition: transform .12s, background .12s; }
.sw.on { background: #5f8a4a; }
.sw.on::after { transform: translateX(20px); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Bühne mit Burgbild */
.stage { position: relative; height: 44vh; min-height: 290px; overflow: hidden; }
.stage svg.art { width: 100%; height: 100%; display: block; }
.stage img.art { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 70%; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,9,8,.7), transparent 28%, transparent 70%, var(--bg)); }
.stage .hud { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 8px; right: 8px; }
.where { position: absolute; z-index: 3; left: 8px; bottom: 14px; padding: 6px 12px 6px 10px; background: linear-gradient(90deg, rgba(11,9,8,.92), rgba(11,9,8,.6)); border-left: 2px solid var(--gold); }
.where b { font: 600 13px var(--font-display); letter-spacing: .1em; color: var(--gold-hi); display: block; text-shadow: 0 1px 0 #000; }
.where span { font-size: 13px; color: var(--mute); font-style: italic; }
.sheet { position: relative; margin: -24px 10px 0; padding: 0 0 14px; z-index: 2; display: grid; gap: 18px; }

/* Gezeichnete Rohstoff- und Warenicons */
.ri { width: 1.35em; height: 1.35em; object-fit: cover; border-radius: 50%; vertical-align: -.35em; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.pcost .ri { width: 22px; height: 22px; }
table.t .ri { width: 24px; height: 24px; }
.rs .md img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Obere Leiste: Pergament, Wappenring mittig obenauf */
.hud { display: flex; align-items: stretch; justify-content: space-between; height: 44px; position: relative; background: linear-gradient(180deg, var(--parch), var(--parch-2)); border: 1px solid var(--gold-lo); box-shadow: inset 0 0 20px rgba(120,85,40,.25), 0 4px 10px rgba(0,0,0,.6); overflow: visible; }
.hud::before { content: ""; position: absolute; inset: 0; background: var(--noise); pointer-events: none; }
.hud > * { position: relative; z-index: 1; }
.hud.inline { margin: calc(env(safe-area-inset-top, 0px) + 14px) 8px 0; flex: none; }
.crest { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #4a3828, #141010 75%); border: 2px solid var(--gold); box-shadow: inset 0 0 0 2px #130e0b, inset 0 0 0 3px var(--gold-lo), 0 4px 10px rgba(0,0,0,.6); position: relative; cursor: pointer; flex: none; text-decoration: none; }
.crest .i { font-size: 24px; }
.crest .lvl { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1305; font: 700 8.5px var(--font-display); padding: 0 6px; border: 1px solid var(--gold-lo); white-space: nowrap; }
.hud .crest { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); margin: 0; z-index: 3; }
.hud .grp { display: flex; flex: 1; min-width: 0; }
.hud .grp.l { padding-right: 30px; } .hud .grp.r { padding-left: 30px; }
.rs { flex: 1; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; padding: 0 5px; border-left: 1px solid rgba(111,90,64,.45); min-width: 0; font: 600 12.5px var(--font-display); color: var(--parch-ink); position: relative; text-align: left; cursor: pointer; }
.rs .of { font-size: 10px; color: var(--parch-mute); }
.rs.warn small { color: #8a5a1e; }
.rs .md .i { color: var(--gold); }
.rs:first-child { border-left: 0; }
.rs .md { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); border: 1.5px solid #8a6418; font-size: 13px; grid-row: span 2; }
.rs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs small { grid-column: 2; font: italic 500 10.5px var(--font-body); color: var(--parch-mute); margin-top: -3px; }
.rs small.neg { color: var(--red); }
.rs .fill { position: absolute; left: 36px; right: 6px; bottom: 3px; height: 2px; background: rgba(111,90,64,.3); }
.rs .fill i { display: block; height: 100%; background: #8a6418; }
.rs.full { color: var(--red); }
.rs.full .fill i { background: var(--red); }

/* Schnellaktionen am rechten Rand der Bühne */
.quick { position: absolute; z-index: 3; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 72px); display: grid; gap: 8px; }
.qb { position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 1px rgba(240,215,138,.12), 0 4px 10px rgba(0,0,0,.6); text-decoration: none; }
.qb .i { font-size: 22px; }
.qb .n { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: linear-gradient(180deg, #d4664f, #8f2f22); border: 1px solid #3a120c; color: #fff; font: 700 9.5px var(--font-display); display: grid; place-items: center; }
.qb .n.g { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1305; border-color: var(--gold-lo); }
.qb .lbl { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 9.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000; opacity: 0; transition: opacity .15s; pointer-events: none; }
.qb:hover .lbl, .qb:focus-visible .lbl { opacity: 1; }
.qb.glow { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(240,215,138,.2), 0 0 14px rgba(201,162,79,.45), 0 4px 10px rgba(0,0,0,.6); }

/* Lehen als Urkunde */
.deed { text-align: left; }
.deed h3 { margin: 0; font: 600 14px var(--font-display); letter-spacing: .1em; text-align: center; }
.deed .sub { text-align: center; font-style: italic; color: var(--parch-mute); font-size: 13.5px; margin: 0 0 8px; }
.deed .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 14.5px; }
.deed .line { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.deed .line span { color: var(--parch-mute); white-space: nowrap; }
.deed .line i { flex: 1; border-bottom: 1px dotted rgba(111,90,64,.6); transform: translateY(-4px); min-width: 8px; }
.deed .line b { font: 600 12.5px var(--font-display); white-space: nowrap; }
.seal { position: absolute; right: 10px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d4664f, #7a241a); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.4); display: grid; place-items: center; color: #f3d2c8; font-size: 16px; }
.ribbon { display: inline-block; margin-top: 8px; padding: 2px 10px; background: #3b5a8a; color: #e6eef8; font: 600 8.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.ribbon.red { background: #8a2b1e; }

/* Bautafel */
.board .hdr { display: grid; grid-template-columns: 56px 1fr 72px; gap: 10px; padding: 0 0 6px; }
.board .hdr span:last-child { text-align: right; }
.job { display: grid; grid-template-columns: 56px 1fr 72px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--parch-line); }
.job:last-child { border-bottom: 0; }
.job .t { font-weight: 700; font-size: 15px; line-height: 1.1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job .s { font-size: 12.5px; color: var(--parch-mute); font-style: italic; margin-top: 2px; }
.job .pbar { height: 4px; background: rgba(111,90,64,.22); border: 1px solid rgba(111,90,64,.45); margin-top: 5px; }
.job .pbar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6418, #c9a24f); }
.job .when { text-align: right; }
.job .when b { display: block; font: 600 13px var(--font-display); }
.job .when span { font-size: 12px; color: var(--parch-mute); font-style: italic; }
.job.hostile .t { color: var(--red); }

/* Aufträge des Rates */
.tj { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dotted var(--parch-line); }
.tj:last-of-type { border-bottom: 0; }
.tj .t { font-weight: 700; font-size: 15px; line-height: 1.1; }
.tj .s { font-size: 12.5px; color: var(--parch-mute); font-style: italic; margin-top: 2px; }
.tj .rew { text-align: right; }
.tj .rew b { display: block; font: 600 12px var(--font-display); }
.tj .rew span { font-size: 11.5px; color: var(--parch-mute); font-style: italic; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--parch-mute); font-style: italic; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(111,90,64,.5); }
.counter b { font: 600 10px var(--font-display); letter-spacing: .12em; font-style: normal; color: var(--parch-ink); white-space: nowrap; }

/* Chronik der Runde: Fahne auf Pergament */
.ban { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.flag { width: 84px; height: 104px; position: relative; display: grid; justify-items: center; align-content: start; padding-top: 10px; gap: 2px; color: var(--gold-hi); background: linear-gradient(180deg, #4a2a22, #2a1612); border: 1px solid var(--gold-lo); border-top: 3px solid var(--gold); clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); box-shadow: inset 0 0 0 1px rgba(240,215,138,.1); }
.flag .n { font: 700 30px/1 var(--font-display); }
.flag .l { font: 600 7.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.flag .i { font-size: 20px; color: var(--gold); margin-top: 6px; }
.rewbox { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.rewbox .rm { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); border: 2px solid var(--gold-lo); box-shadow: 0 0 12px rgba(201,162,79,.35); font-size: 20px; }
.rewbox b { font: 600 12px var(--font-display); letter-spacing: .06em; color: var(--parch-ink); display: block; }
.rewbox span { font-size: 12.5px; color: var(--parch-mute); font-style: italic; }
.pbar2 { height: 4px; background: rgba(111,90,64,.22); border: 1px solid rgba(111,90,64,.45); margin-top: 10px; }
.pbar2 i { display: block; height: 100%; background: linear-gradient(90deg, #8a6418, #c9a24f); }
.pfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--parch-mute); font-style: italic; }
.pfoot b { font: 600 10px var(--font-display); letter-spacing: .12em; font-style: normal; color: var(--parch-ink); }

/* Tab-Leiste: braun, Rundschild für die Karte */
.tabs { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: end; padding: 0 6px calc(env(safe-area-inset-bottom, 0px) + 8px); background: linear-gradient(180deg, #2a1f18, #130e0b); border-top: 1px solid var(--gold-lo); box-shadow: inset 0 1px 0 rgba(240,215,138,.15), 0 -10px 24px rgba(0,0,0,.6); }
.tab { display: grid; justify-items: center; gap: 3px; padding: 10px 2px 4px; color: var(--mute); font: 600 9px var(--font-display); letter-spacing: .1em; text-transform: uppercase; position: relative; text-decoration: none; }
.tab .i { font-size: 22px; }
.tab.on { color: var(--gold-hi); text-shadow: 0 0 10px rgba(201,162,79,.6); }
.tab.on::after { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tab .n { position: absolute; top: 4px; right: 14px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: linear-gradient(180deg, #d4664f, #8f2f22); border: 1px solid #3a120c; color: #fff; font: 700 9px var(--font-display); display: grid; place-items: center; }
.tab.center { padding: 0; margin-top: -26px; justify-items: center; gap: 4px; }
.tab.center .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #4a3828, #141010 75%); border: 2px solid var(--gold); box-shadow: inset 0 0 0 3px #130e0b, inset 0 0 0 4px var(--gold-lo), 0 6px 14px rgba(0,0,0,.7), 0 0 18px rgba(201,162,79,.25); }
.tab.center .ring .i { font-size: 28px; }
.tab.center.on .ring { box-shadow: inset 0 0 0 3px #130e0b, inset 0 0 0 4px var(--gold-lo), 0 6px 14px rgba(0,0,0,.7), 0 0 26px rgba(201,162,79,.55); }

/* Baumeister: großes Medaillon-Raster, zwei je Reihe, damit die Grafiken wirken */
.med.lg { width: 120px; height: 120px; }
.med.lg svg.ring { width: 120px; height: 120px; }
.med.lg svg.ring .rim, .med.lg svg.ring .arc { stroke-width: 4; }
.med.lg .img { inset: 6px; font-size: 44px; }
.med.lg .lv { min-width: 28px; height: 28px; padding: 0 8px; font-size: 13px; right: 0; bottom: 0; }
.med.lg .lk { width: 28px; height: 28px; font-size: 14px; right: 2px; bottom: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
.grid2 .gi { gap: 6px; }
.grid2 .gi .nm { font-size: 11px; }
.grid2 .gi .ef { font-size: 13px; }
.grid2 .gi.hidden { display: none; }
/* Baumeister: Medaillon-Raster */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
.gi { display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; color: var(--parch-ink); }
.gi .nm { font: 600 9px var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.gi .ef { font-size: 11.5px; color: var(--parch-mute); font-style: italic; line-height: 1.1; }
.gi.lock .nm, .gi.lock .ef { color: var(--parch-mute); opacity: .8; }
.gi.hidden { display: none; }
.advice2 { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.advice2 p { margin: 0; font-size: 15px; font-style: italic; color: var(--parch-mute); }
.advice2 p b { color: var(--parch-ink); font-style: normal; }

/* Heer */
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sum div { text-align: center; padding: 6px 4px; border: 1px solid rgba(111,90,64,.5); background: rgba(255,255,255,.25); }
.sum b { display: block; font: 600 14px var(--font-display); }
.sum span { font: 600 8px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--parch-mute); }
.bhead { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(111,90,64,.5); margin-bottom: 10px; }
.bhead .t { font: 600 12px var(--font-display); letter-spacing: .06em; }
.bhead .s { font-size: 12.5px; color: var(--parch-mute); font-style: italic; }
.bhead .q { text-align: right; font-size: 12.5px; color: var(--parch-mute); font-style: italic; }
.bhead .q b { display: block; font: 600 12px var(--font-display); color: var(--parch-ink); font-style: normal; }
.ugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; }
.ugrid .gi.sel .med .img { box-shadow: inset 0 0 0 1px rgba(240,215,138,.15), inset 0 -8px 12px rgba(0,0,0,.5), 0 0 14px rgba(201,162,79,.6); }
.focus { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--parch-line); }
.focus .big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); border: 3px solid var(--gold); box-shadow: inset 0 0 0 2px #e9dcbf, inset 0 0 0 3px var(--gold-lo); font-size: 36px; }
.focus h3 { margin: 0; font: 600 14px var(--font-display); letter-spacing: .06em; color: var(--parch-ink); }
.focus .desc { font-size: 13.5px; font-style: italic; color: var(--parch-mute); margin: 0 0 6px; }
.pvals { display: flex; gap: 5px; margin-bottom: 8px; }
.pval { flex: 1; text-align: center; padding: 3px 0; border: 1px solid rgba(111,90,64,.5); background: rgba(255,255,255,.25); font: 600 10.5px var(--font-display); display: grid; gap: 1px; color: var(--parch-ink); }
.pval .i { font-size: 11px; color: var(--parch-mute); margin: 0 auto; }
.pstep { display: grid; grid-template-columns: 28px 1fr 28px; gap: 4px; align-items: center; margin-bottom: 6px; }
.pstep button { height: 28px; border: 1px solid var(--gold-lo); background: linear-gradient(180deg, #d8c59b, #c9b385); color: var(--parch-ink); font: 700 15px var(--font-display); cursor: pointer; }
.pstep input { height: 28px; border: 1px solid var(--gold-lo); background: #fbf3df; text-align: center; font: 700 14px var(--font-display); color: var(--parch-ink); min-width: 0; width: 100%; }
.pcost { display: flex; gap: 8px; font: 600 10.5px var(--font-display); color: var(--parch-mute); flex-wrap: wrap; margin-bottom: 8px; }
.pcost span { display: inline-flex; align-items: center; gap: 3px; }
.pcost .miss { color: var(--red); }
.unitfocus[hidden] { display: none; }
.lockrow { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.lockrow .t { font: 600 12px var(--font-display); letter-spacing: .06em; }
.lockrow .s { font-size: 13.5px; color: var(--parch-mute); font-style: italic; }

/* Chronik */
.crep { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--parch-line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: var(--parch-ink); text-decoration: none; }
.crep:last-child { border-bottom: 0; }
.crep .t { font: 600 12px var(--font-display); letter-spacing: .04em; line-height: 1.2; }
.crep .s { font-size: 13px; color: var(--parch-mute); font-style: italic; margin-top: 2px; }
.crep .when { text-align: right; font: 600 10px var(--font-display); letter-spacing: .06em; color: var(--parch-mute); white-space: nowrap; }
.crep.new .t::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c9a24f; border: 1px solid var(--gold-lo); margin-left: 6px; vertical-align: middle; }
.crep.hidden { display: none; }
.result { text-align: center; padding: 6px 0 0; }
.result .ttl { font: 700 22px var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--parch-ink); }
.result .sub { color: var(--parch-mute); font-style: italic; margin-top: 2px; font-size: 14.5px; }
.loot { display: flex; justify-content: center; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }
.loot div { min-width: 86px; padding: 8px 6px; border: 1px solid rgba(111,90,64,.5); background: rgba(255,255,255,.25); font: 600 12px var(--font-display); display: grid; justify-items: center; gap: 4px; }
.loot .i { font-size: 18px; color: var(--parch-mute); }

/* Baumeister: Porträts */
.portrait { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); box-shadow: inset 0 0 0 2px #e9dcbf, inset 0 0 0 3px var(--gold-lo), 0 6px 12px rgba(0,0,0,.4); background: #1a120d; display: grid; place-items: center; color: var(--gold); font-size: 40px; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.sm { width: 56px; height: 56px; border-width: 2px; font-size: 22px; }
.builder { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.builder .t { font: 600 12px var(--font-display); letter-spacing: .06em; }
.builder .origin { font-size: 14px; color: var(--parch-mute); font-style: italic; margin: 2px 0 8px; }
.builder .trait { font-size: 14px; margin: 2px 0; }
.builder .trait span { display: inline-block; min-width: 68px; font: 600 8.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #3f6f2f; }
.builder .trait span.minus { color: var(--red); }
.builder .quote { font-size: 14px; color: var(--parch-mute); font-style: italic; margin: 8px 0; }
.advice2.voiced { grid-template-columns: 56px 1fr; }

/* Hof: Ämter */
.hofhead { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 4px 0 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(111,90,64,.5); }
.hofhead .crest { width: 72px; height: 72px; border-width: 3px; box-shadow: inset 0 0 0 2px #e9dcbf, inset 0 0 0 3px var(--gold-lo); cursor: default; }
.hofhead .crest .i { font-size: 30px; }
.hofhead .n { font: 600 14px var(--font-display); letter-spacing: .06em; color: var(--parch-ink); }
.hofhead .s { font-size: 13.5px; color: var(--parch-mute); font-style: italic; margin-top: 2px; }
.office { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 9px 0; border-bottom: 1px dotted var(--parch-line); text-align: left; color: var(--parch-ink); background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.office:last-child { border-bottom: 0; }
.office .t { font: 600 12px var(--font-display); letter-spacing: .06em; }
.office .s { font-size: 13px; color: var(--parch-mute); font-style: italic; margin-top: 2px; }
.office .chev { color: var(--parch-mute); font-size: 16px; }
.orow { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dotted var(--parch-line); color: var(--parch-ink); text-decoration: none; }
.orow:last-child { border-bottom: 0; }
.orow .t { font-weight: 700; font-size: 15px; line-height: 1.15; }
.orow .s { font-size: 12.5px; color: var(--parch-mute); font-style: italic; margin-top: 1px; }
.orow .v { font: 600 9.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--parch-mute); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.orow.bad .t, .orow.bad .img { color: var(--red); }
.orow select { border: 1px solid var(--gold-lo); background: #fbf3df; color: var(--parch-ink); font: 600 11px var(--font-display); padding: 4px 6px; }
.treasure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }

/* Formulare auf Pergament */
.pf label { display: block; margin: 10px 0 4px; font: 600 9px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--parch-mute); }
.pf input[type=text], .pf input[type=email], .pf input[type=password], .pf input[type=number], .pf textarea, .pf select { width: 100%; padding: 8px 10px; border: 1px solid var(--gold-lo); background: #fbf3df; color: var(--parch-ink); font: 500 15px var(--font-body); }
.pf textarea { min-height: 120px; resize: vertical; }
.pf .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pf .check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font: 500 14.5px var(--font-body); text-transform: none; letter-spacing: 0; color: var(--parch-ink); }
.pf .err, .pf ul { color: var(--red); font-size: 13.5px; margin: 4px 0; padding-left: 16px; }
.pf .help { font-size: 13px; color: var(--parch-mute); font-style: italic; }
.radio { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px dotted var(--parch-line); }
.radio:last-child { border-bottom: 0; }
.radio input { margin-top: 3px; accent-color: #8a6418; }
.radio b { font: 600 12px var(--font-display); letter-spacing: .04em; }
.radio span { display: block; font-size: 13px; color: var(--parch-mute); font-style: italic; }

/* Tabellen auf Pergament */
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--parch-ink); }
table.t th { text-align: left; color: var(--parch-mute); font: 600 9px var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 0 5px; border-bottom: 1px solid rgba(111,90,64,.5); }
table.t td { padding: 5px 0; border-bottom: 1px dotted var(--parch-line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t .up { color: #3f6f2f; }
table.t .miss, .loss { color: var(--red); }
table.t tr.me td { font-weight: 700; }
table.t a { color: var(--parch-ink); }
.prose { white-space: pre-wrap; font-size: 15px; }
.rules h3 { margin: 12px 0 4px; font: 600 12px var(--font-display); letter-spacing: .08em; }
.rules h3:first-child { margin-top: 0; }
.rules p { font-size: 14.5px; margin: 0 0 4px; }

/* Überlagertes Fenster */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 8; }
.scrim.on { opacity: 1; pointer-events: auto; }
.win { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 110%); transition: transform .28s cubic-bezier(.2,.8,.2,1); z-index: 9; max-height: 88%; overflow: auto; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); margin-top: 0; }
.win.on { transform: translate(-50%, 0); }
.win .top { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 8px; }
.win .top h3 { margin: 0; font: 600 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.win .close { color: var(--mute); font: 600 13px var(--font-display); padding: 4px 8px; }
.wtabs { display: flex; margin: 0 0 10px; border-bottom: 1px solid var(--gold-dim); }
.wtabs button { flex: 1; padding: 8px 4px; color: var(--mute); font: 600 9.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wtabs button.on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.wgrid { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.art { height: 110px; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #3a2d22, #141010 75%); border: 2px solid var(--gold-lo); font-size: 46px; position: relative; }
.art .lv { position: absolute; left: 6px; top: 5px; font: 600 9px var(--font-display); letter-spacing: .1em; color: var(--gold-hi); }
.win h4 { margin: 0; font: 600 15px var(--font-display); letter-spacing: .06em; color: var(--parch-ink); }
.win .desc { color: var(--parch-mute); font-style: italic; margin: 2px 0 8px; font-size: 14.5px; }
.wfoot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 0 0; }
.wfoot form { display: contents; }
.wfoot.one { grid-template-columns: 1fr; }
[data-pane][hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 6px); padding: 7px 14px; font: 600 10px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); background: rgba(11,9,8,.95); border: 1px solid var(--gold-lo); opacity: 0; transition: .2s; pointer-events: none; z-index: 20; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
canvas#fx { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.foot { text-align: center; color: var(--dim); font: 600 8.5px var(--font-display); letter-spacing: .16em; text-transform: uppercase; padding: 4px 0 10px; }

/* Gastseiten: Anmelden, Registrieren */
.gate { display: grid; align-content: center; min-height: 100%; padding: 24px 10px; gap: 14px; }
.gate .title { text-align: center; }
.gate .title h1 { margin: 0; font: 700 26px var(--font-display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000, 0 0 24px rgba(201,162,79,.35); }
.gate .title p { margin: 4px 0 0; color: var(--mute); font-style: italic; }
.gate .crest { margin: 0 auto 10px; }

/* Burgkarte: Ringe um den Burgfried */
.mapswitch { margin: 10px 10px 8px; }
.mapswitch a { flex: 1; padding: 7px 4px; text-align: center; color: var(--mute); font: 600 9.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; border-left: 1px solid rgba(201,162,79,.2); text-decoration: none; }
.mapswitch a:first-child { border-left: 0; }
.mapswitch a.on { color: #1b1305; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.cstage { position: relative; height: 560px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #33402a 0, #24301c 40%, #141a10 100%); touch-action: none; cursor: grab; margin: 0 10px; border: 1px solid #120c08; box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.cstage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--noise); opacity: .5; }
.clayer { position: absolute; left: 0; top: 0; width: 480px; height: 560px; transform-origin: 0 0; will-change: transform; }
.clayer .court { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.clayer .court.inner { width: 390px; height: 300px; background: radial-gradient(ellipse, rgba(120,105,80,.35), rgba(90,80,60,.25) 60%, rgba(60,55,40,0) 72%); }
.clayer .court.path { width: 88px; height: 70px; transform: translate(-50%, calc(95px - 50%)); background: radial-gradient(ellipse, rgba(160,140,100,.45), transparent 70%); }
.clayer .wall { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 396px; height: 306px; border-radius: 50%; border: 7px solid #74706a; box-shadow: inset 0 0 0 3px #3b3833, 0 0 0 3px #3b3833, 0 10px 18px rgba(0,0,0,.55), inset 0 6px 12px rgba(0,0,0,.35); pointer-events: none; }
.clayer .wall::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; background: repeating-conic-gradient(#9a958a 0 3.5deg, transparent 3.5deg 7deg); -webkit-mask: radial-gradient(ellipse, transparent calc(50% - 9px), #000 calc(50% - 8px), #000 calc(50% - 2px), transparent 50%); mask: radial-gradient(ellipse, transparent calc(50% - 9px), #000 calc(50% - 8px), #000 calc(50% - 2px), transparent 50%); }
.clayer .wall.wood { border-color: #7a5a36; box-shadow: inset 0 0 0 3px #3b2a18, 0 0 0 3px #3b2a18, 0 10px 18px rgba(0,0,0,.55); }
.clayer .wall.wood::before { background: repeating-conic-gradient(#9a7a4a 0 2.5deg, transparent 2.5deg 5deg); }
.clayer .wall.nowall { border: 2px dashed rgba(201,162,79,.3); box-shadow: none; }
.clayer .wall.nowall::before { display: none; }
.clayer .wall.zwinger { width: 440px; height: 340px; border-width: 4px; box-shadow: inset 0 0 0 2px #3b3833, 0 0 0 2px #3b3833; }
.clayer .wall.zwinger::before { display: none; }
.clayer .moat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 430px; height: 334px; border-radius: 50%; border: 12px solid rgba(60,110,150,.55); box-shadow: inset 0 0 10px rgba(20,50,80,.6); pointer-events: none; }
.clayer .tower { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a39e92, #5a5650); border: 2px solid #2b2824; box-shadow: 0 4px 8px rgba(0,0,0,.6); pointer-events: none; }
.clayer .torch { position: absolute; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 10px 4px rgba(255,160,60,.45); pointer-events: none; animation: flick 1.8s ease-in-out infinite; }
@keyframes flick { 50% { box-shadow: 0 0 14px 6px rgba(255,160,60,.55); } }
.clayer .gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(153px - 50%)); width: 34px; height: 26px; background: linear-gradient(180deg, #8a857a, #4a4640); border: 2px solid #2b2824; border-radius: 6px 6px 0 0; pointer-events: none; z-index: 2; }
.clayer .gate::after { content: ""; position: absolute; left: 9px; top: 8px; width: 12px; height: 16px; background: #1a120d; border-radius: 6px 6px 0 0; }
.clayer .gate.house { width: 46px; height: 34px; transform: translate(-50%, calc(150px - 50%)); background: linear-gradient(180deg, #9a958a, #4a4640); }
.clayer .gate.house::after { left: 15px; top: 12px; }
.clayer .bridge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(178px - 50%)); width: 30px; height: 26px; background: repeating-linear-gradient(180deg, #8a6a3a 0 4px, #5a4424 4px 6px); border: 1px solid #2b2824; pointer-events: none; z-index: 2; }
.clayer .pits { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(215px - 50%)); width: 120px; height: 30px; background: radial-gradient(circle, rgba(0,0,0,.55) 3px, transparent 4px) 0 0 / 16px 14px; pointer-events: none; }
.clayer .road { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(190px - 50%)); width: 26px; height: 120px; background: linear-gradient(180deg, rgba(160,140,100,.55), rgba(160,140,100,0)); pointer-events: none; z-index: 1; }
.clayer .ringname { position: absolute; left: 50%; transform: translateX(-50%); font: 600 7.5px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: rgba(240,215,138,.55); text-shadow: 0 1px 0 #000; pointer-events: none; white-space: nowrap; }
.clayer .ringname.dim { color: rgba(240,215,138,.35); }
.ctok, .cslot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; padding: 0; }
.ctok { overflow: visible; cursor: pointer; background: #1a120d; box-shadow: 0 8px 12px rgba(0,0,0,.6), inset 0 0 0 2px rgba(201,162,79,.8); color: var(--gold); }
.ctok img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.ctok .ic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.ctok .nm { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); font: 600 7px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000, 0 0 6px #000; white-space: nowrap; }
.ctok .lv { position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1305; font: 700 9px var(--font-display); display: grid; place-items: center; border: 1px solid var(--gold-lo); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ctok.busy::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--gold-hi); border-right-color: transparent; border-bottom-color: transparent; animation: spin 2.4s linear infinite; z-index: 2; }
.ctok.busy .nm { color: #ffb347; }
@keyframes spin { to { transform: rotate(360deg); } }
.cslot { display: grid; place-items: center; cursor: pointer; color: rgba(240,215,138,.6); font: 600 20px var(--font-display); border: 1.5px dashed rgba(201,162,79,.6); background: rgba(0,0,0,.2); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.cslot:hover { background: rgba(201,162,79,.16); }
.cslot.lock { border-style: solid; border-color: rgba(0,0,0,.4); background: rgba(0,0,0,.4); color: rgba(240,215,138,.3); font-size: 13px; }
.cslot .t { position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%); font: 600 7px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; text-shadow: 0 1px 0 #000; }
.cslot.forest { background: radial-gradient(circle, rgba(40,90,40,.75), rgba(25,60,25,.8)); border-color: rgba(120,180,100,.55); }
.cslot.river { background: radial-gradient(circle, rgba(70,120,150,.7), rgba(40,80,110,.8)); border-color: rgba(140,190,220,.55); }
.cslot.rock { background: radial-gradient(circle, rgba(120,118,110,.7), rgba(80,78,72,.85)); border-color: rgba(190,190,180,.55); }
.cslot.meadow { background: radial-gradient(circle, rgba(130,150,60,.7), rgba(90,110,40,.8)); border-color: rgba(190,210,110,.55); }
.cstage .where { bottom: 10px; }
.cstage .cnt { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; z-index: 3; }
.cstage .cnt button { padding: 5px 9px; background: rgba(11,9,8,.88); border: 1px solid var(--gold-lo); font: 600 9px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); display: flex; gap: 6px; align-items: center; }
.cstage .cnt b { color: var(--ink); }
.cstage .zoom { position: absolute; right: 8px; bottom: 10px; display: grid; gap: 4px; z-index: 3; }
.cstage .zoom button { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(11,9,8,.88); border: 1px solid var(--gold-lo); color: var(--gold-hi); font: 700 16px var(--font-display); }
.orow.dim { opacity: .55; }

/* Burgkarte isometrisch: Rautengitter, Freisteller, gemalter Boden auf Canvas */
.cstage.iso { background: #1d2416; height: calc(100dvh - 230px); min-height: 480px; }
.cstage.iso::after { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.6) 100%); opacity: 1; }
.cstage.iso .clayer { width: 0; height: 0; overflow: visible; }
.cground { position: absolute; left: -1000px; top: -700px; width: 2000px; height: 1500px; pointer-events: none; }
.ctile { position: absolute; transform: translate(-50%, -50%); width: 118px; height: 59px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); display: grid; place-items: center; font: 600 18px var(--font-display); color: rgba(240,215,138,.7); text-shadow: 0 1px 0 #000; padding: 0; z-index: 5; }
.ctile.free { background: rgba(240,215,138,.10); box-shadow: inset 0 0 0 1px rgba(240,215,138,.35); cursor: pointer; }
.ctile.free::before { content: ""; position: absolute; inset: 3px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 1.5px dashed rgba(240,215,138,.45); }
.ctile.free:hover { background: rgba(240,215,138,.22); }
.ctile.lock { background: rgba(0,0,0,.35); color: rgba(240,215,138,.3); font-size: 12px; cursor: default; }
.ctile.forest { background: rgba(30,70,30,.55); } .ctile.river { background: rgba(40,90,120,.55); } .ctile.rock { background: rgba(90,90,85,.55); } .ctile.meadow { background: rgba(120,140,50,.45); }
.ctile .t { position: absolute; bottom: 4px; font: 600 6.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(240,215,138,.65); }
.cbld { position: absolute; transform: translate(-50%, calc(-1 * var(--foot, 72%))); cursor: pointer; padding: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cbld img { display: block; width: 100%; height: auto; pointer-events: none; }
.cbld.chip { transform: translate(-50%, -50%); width: 90px !important; }
.cbld.chip img.round { border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(201,162,79,.8); }
.cbld .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1a120d; color: var(--gold); font-size: 22px; margin: 0 auto; box-shadow: inset 0 0 0 2px rgba(201,162,79,.8); }
.cbld .lv { position: absolute; right: 10%; top: 24%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1305; font: 700 9px var(--font-display); display: grid; place-items: center; border: 1px solid var(--gold-lo); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cbld .nm { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); font: 600 7px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000, 0 0 6px #000; white-space: nowrap; }
.cbld .ring { position: absolute; left: 50%; bottom: 2%; width: 60%; height: 20%; transform: translateX(-50%); border-radius: 50%; border: 3px solid var(--gold-hi); border-right-color: transparent; border-bottom-color: transparent; animation: spin 2.4s linear infinite; }
.cbld.busy .nm { color: #ffb347; }
.cbld.sel { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(240,215,138,.85)); }
.cwall { position: absolute; overflow: hidden; pointer-events: none; }
.cwall img { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: block; max-width: none; filter: drop-shadow(0 6px 5px rgba(0,0,0,.4)); }
.cpart { position: absolute; pointer-events: none; display: block; max-width: none; filter: drop-shadow(0 8px 6px rgba(0,0,0,.45)); }
/* Leben auf der Burgkarte: Rauch, wehende Banner, wiegende Bäume, Nacht */
.smoke { position: absolute; width: 0; height: 0; pointer-events: none; }
.smoke i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(235,230,220,.7) 0%, rgba(235,230,220,.3) 50%, rgba(235,230,220,0) 70%); opacity: 0; animation: puff 3.8s linear infinite; }
@keyframes puff { 0% { transform: translate(0, 0) scale(.45); opacity: 0; } 12% { opacity: .75; } 100% { transform: translate(16px, -50px) scale(2.3); opacity: 0; } }
.cpart.wave { transform-origin: 50% 100%; animation: wave 3.4s ease-in-out infinite alternate; }
@keyframes wave { from { transform: skewX(-2.5deg); } to { transform: skewX(2.5deg); } }
.cpart.sway { transform-origin: 50% 100%; animation: sway 6.5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.cstage.night { background: #10140f; }
.cstage.night .cground, .cstage.night .cbld img, .cstage.night .cpart, .cstage.night .cwall img, .cstage.night .ctile { filter: brightness(.58) saturate(.8); }
.cstage.night .cpart.wave, .cstage.night .cpart.sway { filter: brightness(.58) saturate(.8); }
.glow { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle, rgba(255,205,120,.95) 0%, rgba(255,170,70,.55) 45%, rgba(255,150,50,0) 75%); box-shadow: 0 0 10px 4px rgba(255,170,70,.35); pointer-events: none; animation: flick 2.8s ease-in-out infinite; }
.walker { position: absolute; width: 0; height: 0; pointer-events: none; animation: bob .46s ease-in-out infinite alternate; }
.walker img { position: absolute; left: 0; top: 0; display: block; max-width: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.cstage.night .walker img { filter: brightness(.6) drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.animal { position: absolute; width: 0; height: 0; pointer-events: none; }
.animal img { position: absolute; left: 0; top: 0; display: block; max-width: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.cstage.night .animal img { filter: brightness(.6) drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.bird { position: absolute; width: 0; height: 0; z-index: 9000; pointer-events: none; }
.bird i { position: absolute; top: 0; width: 7px; height: 2px; background: #2a241c; border-radius: 2px; transform-origin: 100% 50%; animation: flapL .32s ease-in-out infinite alternate; }
.bird i + i { transform-origin: 0 50%; left: 0; animation-name: flapR; }
.bird i:first-child { left: -7px; }
@keyframes flapL { from { transform: rotate(-28deg); } to { transform: rotate(22deg); } }
@keyframes flapR { from { transform: rotate(28deg); } to { transform: rotate(-22deg); } }
.cstage.night .bird { opacity: .35; }
.walker .wheel { position: absolute; left: 0; top: 0; display: block; max-width: none; animation: spin 1.6s linear infinite; }
.walker .wheel.ccw { animation-direction: reverse; }
.sails { position: absolute; pointer-events: none; animation: spin 9s linear infinite; transform-origin: 50% 50%; }
.cstage.night .sails { filter: brightness(.58) saturate(.8); }
.cflame { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 10px 4px rgba(255,160,60,.5); animation: flick 1.6s ease-in-out infinite; pointer-events: none; z-index: 4; }

/* Karte im Rahmen */
.mapframe { padding: 0 10px 10px; display: grid; min-height: 0; }
.mapframe .panel { margin-top: 0; display: grid; min-height: 0; }
.mapapp { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #0c0e12; font-size: 14px; }
.map-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.map-canvas.dragging { cursor: grabbing; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.mapapp .glass { background: linear-gradient(180deg, rgba(38,29,24,.94), rgba(28,21,18,.94)); border: 1px solid var(--gold-lo); box-shadow: 0 10px 26px rgba(0,0,0,.6), inset 0 1px 0 rgba(240,215,138,.12); color: var(--ink); }
.map-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-hud > * { pointer-events: auto; }
.map-bar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; }
.map-bar.tight { padding: 5px; gap: 5px; }
.mapapp .stat { color: var(--mute); font-size: 12.5px; white-space: nowrap; font-style: italic; }
.mapapp .stat b { color: var(--gold-hi); font: 600 11px var(--font-display); font-variant-numeric: tabular-nums; }
.mapapp .spacer { flex: 1; }
.map-search { position: relative; display: flex; align-items: center; padding: 6px 12px; min-width: 200px; }
.map-search input { background: transparent; border: 0; color: var(--ink); font: 500 14.5px var(--font-body); outline: none; width: 100%; padding: 2px 0; }
.map-search input::placeholder { color: var(--mute); font-style: italic; }
.map-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; display: none; flex-direction: column; padding: 6px; z-index: 5; }
.map-suggest.open { display: flex; }
.map-suggest button { text-align: left; background: transparent; border: 0; color: var(--ink); padding: 8px 10px; font: 500 14px var(--font-body); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.map-suggest button:hover, .map-suggest button:focus-visible { background: rgba(201,162,79,.12); outline: none; }
.map-suggest small { color: var(--mute); font-variant-numeric: tabular-nums; }
.map-chips { display: flex; gap: 4px; padding: 4px; }
.map-chips .chip { background: transparent; border: 1px solid transparent; color: var(--mute); padding: 5px 10px; font: 600 9px var(--font-display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.map-chips .chip.on { color: var(--gold-hi); background: rgba(201,162,79,.12); border-color: var(--gold-lo); }
.mbtn { background: linear-gradient(180deg, #3a2d22, #1a1310); color: var(--gold-hi); border: 1px solid var(--gold-lo); padding: 7px 12px; font: 600 9.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
.mbtn:hover { color: #fff; }
.mbtn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #a9822f 55%, var(--gold-lo)); color: #1b1305; border-color: #5c4414; }
.mbtn.icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; font-size: 18px; }
.map-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.map-zoom .lvl { text-align: center; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.map-tip { position: absolute; pointer-events: none; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; transform: translate(14px, 14px); opacity: 0; transition: opacity .12s; z-index: 4; }
.map-tip.show { opacity: 1; }
.map-tip span { color: var(--mute); }
.map-panel { position: absolute; left: 10px; right: 10px; bottom: 10px; max-height: 56%; overflow: auto; padding: 14px 14px 12px; transform: translateY(24px); opacity: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: none; z-index: 3; }
.map-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.map-panel .close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; padding: 0; }
.map-panel .eyebrow { font: 600 9px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.map-panel h2 { font: 600 16px var(--font-display); letter-spacing: .08em; margin: 0 0 4px; color: var(--gold-hi); padding-right: 28px; }
.map-panel .sub { color: var(--mute); font-size: 13.5px; font-style: italic; margin: 0 0 12px; }
.map-panel .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.map-panel .tag { display: inline-flex; align-items: center; padding: 2px 8px; font: 600 8.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--gold-lo); color: var(--mute); }
.map-panel .tag.own { color: var(--gold-hi); background: rgba(201,162,79,.15); }
.map-panel .tag.protect { color: #93adc8; border-color: rgba(147,173,200,.5); }
.map-panel .tag.dark { color: #b39cff; border-color: rgba(179,156,255,.5); }
.map-panel .tag.good { color: var(--good); border-color: rgba(143,181,115,.5); }
.map-panel .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.map-panel .kv div { background: rgba(0,0,0,.3); border: 1px solid rgba(201,162,79,.2); padding: 7px 9px; min-width: 0; }
.map-panel .kv dt { font: 600 8.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.map-panel .kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.map-panel .travel { margin: 0 0 12px; }
.map-panel .travel .row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid rgba(201,162,79,.14); font-size: 13.5px; }
.map-panel .travel .row:first-child { border-top: 0; }
.map-panel .travel .row span { color: var(--mute); }
.map-panel .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-panel .note { font-size: 13px; color: var(--mute); font-style: italic; margin: 10px 0 0; }
.map-panel .sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 0; box-shadow: none; }
.map-panel .sw::after { display: none; }
.map-mini { position: absolute; left: 10px; bottom: 10px; padding: 6px; }
.map-mini canvas { display: block; width: 120px; height: 120px; cursor: crosshair; }
.map-mini .cap { display: flex; justify-content: space-between; gap: 10px; font: 600 8.5px var(--font-display); letter-spacing: .06em; color: var(--mute); margin-top: 5px; }
.map-mini .cap b { color: #b39cff; }
.map-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; font: 600 10px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 480px) {
  .map-bar:not(.tight), .map-chips { display: none; }
  .map-search { min-width: 0; flex: 1; }
  .map-mini, .map-zoom { display: none; }
}
@media (prefers-reduced-motion: reduce) { .win, .scrim, .map-panel, .map-tip { transition: none; } }

/* Berichte und Texte auf Pergament */
.warn { color: var(--red); font-weight: 700; }
.sheetp h3 { margin: 10px 0 2px; font: 600 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--parch-mute); }
.sheetp p + p { margin-top: 6px; }
.small { font-size: 13px; }
