/* Kartenrahmen Stil G, zweite Fassung (3. Dez.): Rahmen mit eingebauten Steinen (Glut, Angriff, Leben),
 * Diener d1-d4, Zauber z1-z4, Gebäude g. Erzeugt von tools/bilderfabrik/rahmen_bauen.py aus rahmen_pos.json. */
.karte .kr{border-radius:5%/3.4%;box-shadow:none!important}
.karte .pip{display:none}
.karte .kn{background:none;border:0;box-shadow:none;height:auto;padding:0 4px;font-size:15px;line-height:1;translate:0 -50%}
.karte.leg .kn::before{content:none}
.karte .kt{font-size:12.6px;line-height:1.12}
.karte .kt.lang{font-size:11.2px;line-height:1.08}.karte .kt.sehrlang{font-size:10.2px;line-height:1.05}
.karte .ktyp{display:none}
.karte .kb{border-radius:3px}
.karte.leg .kb::after{box-shadow:none}
.karte .gem.km,.karte .gem.ka,.karte .gem.kh{background:none!important;clip-path:none!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;right:auto!important;bottom:auto!important;translate:-50% -52%;
 font-family:var(--display);font-size:27px!important;line-height:1;color:#fff!important;-webkit-text-stroke:2px #1a0a04;paint-order:stroke fill;text-shadow:0 2px 0 #000,0 0 6px #000}
.karte .gem.km.billiger,.karte .gem.ka.mehr,.karte .gem.kh.mehr{color:#9aff7a!important}
.hand .karte.spielbar .kr{box-shadow:none!important;filter:drop-shadow(0 0 1px #c8ff9a) drop-shadow(0 0 2px #9fe07a) drop-shadow(0 0 2px #9fe07a) drop-shadow(0 0 10px #9fe07a)}
.hand .karte.gewaehlt .kr{box-shadow:none!important;filter:drop-shadow(0 0 1.5px #ffe49a) drop-shadow(0 0 1.5px #ffd86a) drop-shadow(0 0 12px #ffd86a)}
.karte.r1:not(.zauber):not(.gebkarte) .kr,.karte.r0:not(.zauber):not(.gebkarte) .kr{background-image:url(../img/ui_karte_d1.webp)}
.karte.r1:not(.zauber):not(.gebkarte) .kb,.karte.r0:not(.zauber):not(.gebkarte) .kb{left:12.73%;right:12.490000000000004%;top:8.86%;bottom:49.13%;width:auto;height:auto}
.karte.r1:not(.zauber):not(.gebkarte) .kn,.karte.r0:not(.zauber):not(.gebkarte) .kn{left:9.56%;right:9.67%;top:56.80500000000001%}
.karte.r1:not(.zauber):not(.gebkarte) .kt,.karte.r0:not(.zauber):not(.gebkarte) .kt{left:16.33%;right:16.439999999999998%;top:64.84%;bottom:15.31%}
.karte.r1:not(.zauber):not(.gebkarte) .gem.km,.karte.r0:not(.zauber):not(.gebkarte) .gem.km{left:14.62%!important;top:10.05%!important}
.karte.r1:not(.zauber):not(.gebkarte) .gem.ka,.karte.r0:not(.zauber):not(.gebkarte) .gem.ka{left:13.09%!important;top:90.03%!important}
.karte.r1:not(.zauber):not(.gebkarte) .gem.kh,.karte.r0:not(.zauber):not(.gebkarte) .gem.kh{left:86.91%!important;top:89.87%!important}
.karte.r2:not(.zauber):not(.gebkarte) .kr{background-image:url(../img/ui_karte_d2.webp)}
.karte.r2:not(.zauber):not(.gebkarte) .kb{left:14.73%;right:14.850000000000003%;top:8.299999999999999%;bottom:43.9%;width:auto;height:auto}
.karte.r2:not(.zauber):not(.gebkarte) .kn{left:10.85%;right:10.97%;top:59.97%}
.karte.r2:not(.zauber):not(.gebkarte) .kt{left:18.33%;right:18.450000000000003%;top:65.24%;bottom:15.31%}
.karte.r2:not(.zauber):not(.gebkarte) .gem.km{left:14.5%!important;top:9.49%!important}
.karte.r2:not(.zauber):not(.gebkarte) .gem.ka{left:14.74%!important;top:89.64%!important}
.karte.r2:not(.zauber):not(.gebkarte) .gem.kh{left:84.67%!important;top:88.77%!important}
.karte.r3:not(.zauber):not(.gebkarte) .kr{background-image:url(../img/ui_karte_d3.webp)}
.karte.r3:not(.zauber):not(.gebkarte) .kb{left:13.55%;right:13.430000000000001%;top:8.62%;bottom:45.33%;width:auto;height:auto}
.karte.r3:not(.zauber):not(.gebkarte) .kn{left:11.80%;right:11.68%;top:59.89%}
.karte.r3:not(.zauber):not(.gebkarte) .kt{left:17.15%;right:17.03%;top:65.79%;bottom:14.91%}
.karte.r3:not(.zauber):not(.gebkarte) .gem.km{left:16.16%!important;top:10.76%!important}
.karte.r3:not(.zauber):not(.gebkarte) .gem.ka{left:15.45%!important;top:89.08%!important}
.karte.r3:not(.zauber):not(.gebkarte) .gem.kh{left:84.55%!important;top:89.08%!important}
/* Legendär ohne Drachenflügel: Gold mit geschwärztem Eisen und Glutkristallen (5. Dez., tools/bilderfabrik/rahmen_legendaer.py) */
.karte.r4:not(.zauber):not(.gebkarte) .kr{background-image:url(../img/ui_karte_d4.webp?v=2)}
.karte.r4:not(.zauber):not(.gebkarte) .kb{left:13.67%;right:14.49%;top:8.94%;bottom:44.38%;width:auto;height:auto}
.karte.r4:not(.zauber):not(.gebkarte) .kn{left:16.5%;right:16.5%;top:59.89%}
.karte.r4:not(.zauber):not(.gebkarte) .kt{left:17.39%;right:18.09%;top:66.43%;bottom:14.28%}
.karte.r4:not(.zauber):not(.gebkarte) .gem.km{left:15.21%!important;top:11.39%!important}
.karte.r4:not(.zauber):not(.gebkarte) .gem.ka{left:15.21%!important;top:89.32%!important}
.karte.r4:not(.zauber):not(.gebkarte) .gem.kh{left:84.55%!important;top:89.32%!important}
.karte.gebkarte .kr{background-image:url(../img/ui_karte_g.webp)}
.karte.gebkarte .kb{left:25.82%;right:25.82%;top:17.64%;bottom:42.56%;width:auto;height:auto}
.karte.gebkarte .kn{left:13.57%;right:13.57%;top:61.31%}
.karte.gebkarte .kt{left:18.45%;right:18.450000000000003%;top:67.22%;bottom:15.39%}
.karte.gebkarte .gem.km{left:15.21%!important;top:10.68%!important}
.karte.gebkarte .gem.kh{left:85.26%!important;top:90.19%!important}
.karte.r1.zauber .kr,.karte.r0.zauber .kr{background-image:url(../img/ui_karte_z1.webp)}
.karte.r1.zauber .kb,.karte.r0.zauber .kb{left:12.14%;right:12.139999999999995%;top:7.99%;bottom:44.85%;width:auto;height:auto}
.karte.r1.zauber .kn,.karte.r0.zauber .kn{left:8.61%;right:8.61%;top:60.485%}
.karte.r1.zauber .kt,.karte.r0.zauber .kt{left:15.5%;right:15.620000000000005%;top:67.38%;bottom:14.12%}
.karte.r1.zauber .gem.km,.karte.r0.zauber .gem.km{left:14.62%!important;top:10.05%!important}
.karte.r2.zauber .kr{background-image:url(../img/ui_karte_z2.webp)}
.karte.r2.zauber .kb{left:13.08%;right:13.080000000000007%;top:8.7%;bottom:41.93%;width:auto;height:auto}
.karte.r2.zauber .kn{left:10.26%;right:10.26%;top:61.67%}
.karte.r2.zauber .kt{left:16.8%;right:16.799999999999997%;top:66.74%;bottom:14.91%}
.karte.r2.zauber .gem.km{left:17.57%!important;top:11.47%!important}
.karte.r3.zauber .kr{background-image:url(../img/ui_karte_z3.webp)}
.karte.r3.zauber .kb{left:17.09%;right:17.089999999999996%;top:10.6%;bottom:44.690000000000005%;width:auto;height:auto}
.karte.r3.zauber .kn{left:11.09%;right:11.09%;top:59.415%}
.karte.r3.zauber .kt{left:17.39%;right:17.5%;top:65.0%;bottom:15.78%}
.karte.r3.zauber .gem.km{left:18.4%!important;top:12.82%!important}
/* Legendär ohne Drachenflügel: Gold mit geschwärztem Eisen und Glutkristallen (5. Dez., tools/bilderfabrik/rahmen_legendaer.py) */
.karte.r4.zauber .kr{background-image:url(../img/ui_karte_z4.webp?v=2)}
.karte.r4.zauber .kb{left:15.79%;right:16.26%;top:10.44%;bottom:44.62%;width:auto;height:auto}
.karte.r4.zauber .kn{left:10.5%;right:11.21%;top:59.58%}
.karte.r4.zauber .kt{left:17.62%;right:17.98%;top:65.48%;bottom:15.55%}
.karte.r4.zauber .gem.km{left:18.04%!important;top:12.42%!important}
.karte.r4 .kn{font-size:13px}
/* Gemalte Währungen (Stil G) */
.splitter::before,.kristall::before,.staub::before{background:center/contain no-repeat!important;clip-path:none!important;border-radius:0!important;box-shadow:none!important;width:1.15em!important;height:1.15em!important;filter:drop-shadow(0 0 5px var(--gl,#ff8a3a88))}
.splitter::before{background-image:url(../img/ui_w_splitter.webp)!important}
.kristall::before{background-image:url(../img/ui_w_kristall.webp)!important}
.staub::before{background-image:url(../img/ui_w_staub.webp)!important;--gl:#7ad0c088}
/* Kartenpaket als gemaltes Lederbündel (Stil G) */
.paket b{background:url(../img/ui_paket.webp) 50%/contain no-repeat!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 8px 14px #000c) drop-shadow(0 0 16px #ff7a2a55)}
.paketgross{background:url(../img/ui_paket.webp) 50%/contain no-repeat!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 0 40px #ff7a2a99) drop-shadow(0 20px 30px #000)}
/* Versuch: Gebäude in der hinteren Reihe (Brett bg_brett_reihen) */
.reihe .geb.hinten,body.brett-flach .reihe .geb.hinten{width:176px!important;height:114px!important;rotate:none!important;translate:none!important;filter:none!important;margin:0!important;border-radius:8px}
.geb.hinten .gbild{border-radius:8px}
.geb.hinten .gbild img{object-fit:cover;object-position:50% 55%}
.geb.hinten .gname{display:block!important;bottom:4px;font-size:15px}
.geb.hinten .gem.gh{top:auto!important;bottom:-8px!important;right:-8px!important;width:32px!important;height:32px!important;font-size:17px!important}
.geb.hinten.gedeckt .gbild{box-shadow:0 0 0 3px #9fc8ff,0 0 0 5px #000,0 0 14px #9fc8ff77,0 8px 18px #000c}
.geb.hinten.gedeckt::after{content:'';position:absolute;left:50%;top:-14px;width:22px;height:22px;translate:-50% 0;border-radius:50%;background:#1a2a3a url(../img/ui_sym_ruestung.webp) center/80% no-repeat;box-shadow:0 0 0 2px #9fc8ff}
body.brett-flach .held.ich .hname{bottom:auto;top:-30px;left:50%;translate:-50% 0}
/* Karte kippt als eine flache Fläche: keine 3D-Tiefe der Teile (sonst flackern Zahlen bzw. Karten verschwinden in manchen Browsern) */
.karte{transform-style:flat!important}
.karte .kn{transform:translateY(-50%);translate:none}
.karte .gem.km,.karte .gem.ka,.karte .gem.kh{transform:translate(-50%,-52%)!important;translate:none!important}
