
#filz { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; }
#filz[hidden] { display: none; }
#logo, .titel h1, .mk h3, .karte-ov h2, .dlg h2 { font-style: italic; }
#logoBild svg, .titel-bild svg { overflow: visible; }

.platz.leer { display: flex; align-items: flex-start; justify-content: center; }
.platz.leer span { margin-top: 18%; padding: 0 3px; font: italic 700 max(11px, calc(var(--cw) * .17)) / 1.15 var(--zier); color: var(--text); opacity: .7; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.platz.vorratplatz { cursor: pointer; }
.platz.vorratplatz span { font-size: 12px; color: var(--text); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.k.stapel { box-shadow: none; }
.modus .haken { display: none; }

.anzahl { position: absolute; z-index: 150; transform: translate(-50%, -50%); min-width: 22px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--leiste); border: 1px solid var(--akzent);
  font-size: 12px; line-height: 18px; text-align: center; color: var(--akzent2); font-variant-numeric: tabular-nums; pointer-events: none; }

.gem { position: absolute; width: var(--pr); height: var(--pr); border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.16), rgba(0,0,0,.28)); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; pointer-events: none; }
.gem b { font: italic 700 calc(var(--pr) * .55) / 1 var(--zier); color: rgba(255,255,255,.4); }
.gem i { position: absolute; inset: -4%; background-size: 100% 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.flugchip { position: fixed; left: 0; top: 0; z-index: 6000; pointer-events: none; background-size: 100% 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.schwebe { position: absolute; z-index: 1200; transform: translate(-50%, 0); font: italic 700 20px var(--zier); color: var(--akzent2); text-shadow: 0 2px 4px #000; pointer-events: none; animation: schwebe 1.3s ease-out forwards; }
@keyframes schwebe { from { opacity: 0; margin-top: 0; } 15% { opacity: 1; } to { opacity: 0; margin-top: -60px; } }

#vgLeiste { position: absolute; z-index: 1100; display: flex; gap: 8px; align-items: stretch; pointer-events: none; }
#vgLeiste > * { pointer-events: auto; }
#vgLeiste.seitlich { flex-direction: column; }
#vgLeiste .chip, .vg-top .chip { display: inline-block; width: 26px; height: 26px; flex: none; background-size: 100% 100%; border-radius: 50%; }
#vgLeiste .chip.leer { border: 2px dashed var(--leiste-rand); width: 22px; height: 22px; }
#bMischen { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--akzent); background: var(--knopf);
  color: var(--text); font: italic 700 16px var(--zier); cursor: pointer; white-space: nowrap; }
#bMischen:hover:not(:disabled) { background: var(--knopf-hover); }
#bMischen:disabled { opacity: .45; cursor: default; border-color: var(--leiste-rand); }
#vgLeiste .fach { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 0 8px; border-radius: 11px; background: var(--leiste); border: 1px solid var(--leiste-rand); overflow: hidden; }
#vgLeiste .fach small { margin-right: 4px; font: italic 700 13px var(--zier); color: var(--gedimmt); }
#vgLeiste .fach em { color: var(--gedimmt); font-style: normal; }
#vgLeiste .fach em.mehr { margin-left: 3px; color: var(--text); font-size: 13px; }
#vgLeiste .fach.bank .chip { opacity: .5; filter: grayscale(.6); }
#vgLeiste .fach.summe b { color: var(--akzent2); font-variant-numeric: tabular-nums; }
#vgLeiste.unten .fach { flex: 0 1 auto; }
#vgLeiste.unten .fach:not(.summe) { flex: 1 1 0; }
#vgLeiste.seitlich { gap: 6px; }
#vgLeiste.seitlich .fach { flex-wrap: wrap; padding: 4px 8px; }
#vgLeiste.seitlich .fach small { flex-basis: 100%; }
@media (max-width: 520px) {
  #vgLeiste { gap: 5px; }
  #bMischen { padding: 0 9px; font-size: 14px; gap: 5px; }
  #vgLeiste .chip { width: 20px; height: 20px; margin-left: -6px; }
  #vgLeiste .fach .chip:first-of-type { margin-left: 0; }
  #vgLeiste .fach { padding: 0 6px; }
  #vgLeiste .fach small { font-size: 12px; }
}

.fassade { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: -4px 0 12px; border-radius: 10px; background-size: cover; box-shadow: 0 4px 14px rgba(0,0,0,.5); overflow: hidden; }
.fassade span { position: absolute; display: flex; align-items: center; justify-content: center; font: italic 700 clamp(11px, 3.6vw, 15px) var(--zier); color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.fassade .total { left: 46%; top: 70.7%; width: 13%; height: 5.2%; color: var(--akzent2); font-size: clamp(13px, 4.2vw, 18px); }

.dlg .vg-top { margin-top: 16px; }
.dlg .vg-top .mk { margin-bottom: 8px; }
.dlg .vg-top .mk h3 { margin: 0; }
.dlg .vg-top .t1 ol { height: 154px; }
.vg-top .chip { width: 24px; height: 24px; }
.t1 { position: relative; border-radius: 10px; background: #12100c; border: 1px solid #b8963e; box-shadow: inset 0 0 12px rgba(0,0,0,.8); padding: 6px 4px 6px 8px; }
.t1 ol { height: 178px; margin: 0; padding: 0 4px 0 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; font: 13px/22px Arial, Helvetica, sans-serif; color: #e8d38a; }
.t1 li { display: flex; gap: 8px; padding: 0 4px; white-space: nowrap; }
.t1 li b { font-weight: normal; opacity: .7; font-variant-numeric: tabular-nums; }
.t1 li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.t1 li em { font-style: normal; font-variant-numeric: tabular-nums; }
.t1 li.me { background: rgba(255, 204, 51, .25); color: #ffe68a; border-radius: 3px; }
.t1 li.t1-gap { justify-content: center; opacity: .5; }
.t1 li.t1-msg { display: block; white-space: normal; text-align: center; opacity: .8; padding-top: 8px; line-height: 1.4; }
.t1-knoepfe { display: flex; align-items: center; gap: 6px; margin-top: 6px; border-top: 1px solid rgba(184,150,62,.4); padding-top: 6px; }
.t1-knoepfe button { flex: none; width: 42px; height: 38px; border: 0; border-radius: 6px; background: url(img/tafel.webp?v=1) no-repeat; cursor: pointer; }
.t1-knoepfe button:hover, .t1-knoepfe button:focus-visible { background-color: rgba(255,255,255,.12); outline: none; }
.t1-knoepfe .t1-reload { background-size: 256px 260px; background-position: -12px -143px; }
.t1-knoepfe .t1-up, .t1-knoepfe .t1-down { display: flex; align-items: center; justify-content: center; background: none; }
.t1-knoepfe .t1-up { margin-left: auto; }
.t1-knoepfe .t1-up::before, .t1-knoepfe .t1-down::before { content: ""; border-left: 10px solid transparent; border-right: 10px solid transparent; filter: drop-shadow(1px 1px 0 #000); }
.t1-knoepfe .t1-up::before { border-bottom: 16px solid #c9a227; }
.t1-knoepfe .t1-down::before { border-top: 16px solid #c9a227; }
.t1-knoepfe .t1-per { width: auto; flex: 0 1 auto; padding: 0 12px; background: #1c1a18; border: 1px solid #b8963e; font: italic 700 14px "Times New Roman", Times, serif; color: #e8d38a; }
.t1-knoepfe .t1-per::after { content: " \21C4"; opacity: .6; }

@media (max-width: 760px) {
  #knoepfe button { height: 38px; min-width: 42px; justify-content: center; }
}
@media (max-height: 500px) and (min-width: 600px) {
  #leiste { flex-wrap: nowrap; gap: 8px; padding: 4px 10px; }
  #logo { font-size: 17px; letter-spacing: 1px; }
  #logoBild { width: 24px; height: 24px; }
  #anzeige { flex-wrap: nowrap; gap: 5px; }
  .wert { min-width: 64px; padding: 1px 8px; }
  .wert b { font-size: 15px; }
  #wModus b { font-size: 12.5px; }
  #knoepfe button { height: 38px; min-width: 42px; padding: 0 9px; justify-content: center; }
  #knoepfe button span { display: none; }
}

.modus .seg button { padding: 0 2px; font-size: 13.5px; white-space: nowrap; }
