/* Bauernopfer – Gestaltung. Farben aus dem Titelbild: Schiefergrau, Nachtschwarz, Elfenbein, Holzbraun. */
:root {
  --nacht: #0e0b0c; --schiefer: #1c2128; --schiefer2: #2a3038; --elfenbein: #ecd9b4; --gold: #d7b077; --gold2: #a97b4c;
  --text: #efe4cf; --leise: #a89a86; --rot: #d2463a;
  --brett: min(92vw, calc(100vh - 240px), 760px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--text);
  background: radial-gradient(120% 90% at 50% 0%, #2d343d 0%, #181c22 48%, #0b0909 100%) fixed; overflow-x: hidden;
}
h1, h2, .marke-titel { font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
#app { min-height: 100%; display: grid; grid-template-columns: auto 300px; grid-template-rows: auto 1fr auto; grid-template-areas: "kopf kopf" "buehne seite" "fuss fuss"; gap: 14px 26px; justify-content: center; padding: 12px 20px; }

/* Kopfzeile */
.kopf { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; }
.marke { display: flex; flex-direction: column; }
.marke-titel { font-size: 26px; color: var(--elfenbein); text-shadow: 0 2px 8px #000; }
.marke-sub { font-size: 12px; color: var(--leise); text-transform: uppercase; letter-spacing: .18em; }
.kopf-knoepfe { display: flex; gap: 10px; }

/* Knöpfe */
.knopf { appearance: none; border: 1px solid #ffffff1f; background: linear-gradient(#ffffff14, #ffffff05); color: var(--text); padding: 10px 18px; border-radius: 10px; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .1s, border-color .2s; }
.knopf:hover { background: linear-gradient(#ffffff22, #ffffff0a); border-color: #d7b07766; }
.knopf:active { transform: translateY(1px); }
.knopf.gold { background: linear-gradient(#e6c48d, #b98a55); color: #2a1a0d; border-color: #f3dcae; box-shadow: 0 6px 20px #b98a5544, inset 0 1px #fff8; }
.knopf.gold:hover { background: linear-gradient(#f0d29e, #c39461); }
.knopf.leise { background: none; border-color: transparent; color: var(--leise); }
.knopf.rund { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.pause-ico { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

/* Bühne mit Brett */
.buehne { grid-area: buehne; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.brett-rahmen { padding: 0; border-radius: 10px; box-shadow: 0 30px 60px -10px #000c, 0 12px 24px #0008, 0 0 0 1px #00000080; }
#brett { position: relative; width: var(--brett); aspect-ratio: 1; border-radius: 8px; overflow: hidden; user-select: none; touch-action: manipulation; }
#brett-bild, #brett-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.koord text { font: 600 26px Georgia, serif; fill: #e3c48f; fill-opacity: .82; text-anchor: middle; }
#feld { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; cursor: pointer; }
#markierungen, #figuren, #effekte { position: absolute; inset: 0; pointer-events: none; }
#feld { touch-action: none; }
#felder { position: absolute; inset: 0; }
.feld-knopf { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: default; }
.feld-knopf.spielbar { cursor: grab; }
.feld-knopf.spielbar:hover { background: #ffe2a81c; box-shadow: inset 0 0 0 2px #ffe2a85c; }
.feld-knopf:focus-visible { outline: 3px solid #91dbff; outline-offset: -4px; background: #91dbff22; }
#feld.zieht-figur, #feld.zieht-figur .feld-knopf { cursor: grabbing; }
.fig.gewaehlt .fz { transform: translateY(-5%) scale(1.06); filter: drop-shadow(0 0 7px #ffe2a8aa) drop-shadow(0 7px 5px #0008); }
.fig.wird-gezogen { z-index: 10; translate: var(--drag-x, 0px) var(--drag-y, 0px); transition: none; }
.fig.wird-gezogen .fz { transform: scale(1.14); filter: drop-shadow(0 13px 7px #0009); }
.mk.ablage { background: #88c98c55; box-shadow: inset 0 0 0 4px #c6f5b7; }
.mk.tipp-start { box-shadow: inset 0 0 0 3px #91dbff; background: #91dbff33; }
.mk.tipp-ziel { box-shadow: inset 0 0 0 4px #91dbff; background: #91dbff44; }
.mk.tipp-ziel::after { content: '✦'; display: grid; place-items: center; position: absolute; inset: 0; color: #d9f2ff; font-size: clamp(20px, 4vw, 40px); text-shadow: 0 2px 5px #000; }
.knopf:disabled { opacity: .4; cursor: default; transform: none; }
.seite .knopf { min-height: 44px; padding-inline: 10px; }
.knopf, .segmente button { min-height: 44px; }
.knopf.rund { width: 44px; height: 44px; }
.zugliste:empty::after { content: 'Deine Züge erscheinen hier.'; display: block; color: var(--leise); font: 13px/1.6 "Segoe UI", system-ui, sans-serif; padding: 8px 0; }
.knopf:focus-visible, .segmente button:focus-visible, .umw:focus-visible { outline: 3px solid #91dbff; outline-offset: 3px; }
.zug-feedback { margin: 0; padding: 12px; border-radius: 9px; background: #d7b0770c; border-left: 3px solid var(--gold); min-height: 68px; font-size: 14px; }
.bedienhilfe { font-size: 12px; line-height: 1.6; color: var(--leise); }
.status.denkt::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 50%; background: var(--gold); animation: puls 1s ease-in-out infinite; }

/* Figuren: gleiten per transform, weicher Schlagschatten */
.fig { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; transition: transform .28s cubic-bezier(.3, .7, .25, 1); will-change: transform; }
.fig .fz { width: 100%; height: 100%; display: block; padding: 3%; filter: drop-shadow(0 3px 2px #0009) drop-shadow(0 7px 7px #0005); transition: transform .2s; }
.fig.zieht { z-index: 5; }
.fig.zieht .fz { transform: scale(1.08) translateY(-3%); filter: drop-shadow(0 9px 7px #0008) drop-shadow(0 14px 14px #0004); }
.fig.geschlagen { z-index: 4; }
.fig.geschlagen .fz { animation: geschlagen .6s ease-in forwards; }
@keyframes geschlagen { 0% { transform: scale(1); opacity: 1; } 30% { transform: scale(1.18) rotate(-8deg); filter: brightness(1.6) drop-shadow(0 0 10px #ffd38a); } 100% { transform: scale(.25) rotate(25deg) translateY(30%); opacity: 0; } }
.fig.umgewandelt .fz { animation: umw .5s ease-out; }
@keyframes umw { 0% { transform: scale(.4); filter: brightness(2) drop-shadow(0 0 14px #ffe2a8); } 100% { transform: scale(1); } }

/* Markierungen */
.mk { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; }
.mk.letzter { background: rgba(255, 196, 70, .30); box-shadow: inset 0 0 0 2px rgba(255, 214, 130, .35); }
.mk.auswahl { background: rgba(255, 220, 140, .38); box-shadow: inset 0 0 0 3px rgba(255, 236, 190, .9), inset 0 0 18px rgba(255, 200, 90, .6); }
.mk.ziel::after { content: ""; position: absolute; left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 50%; background: radial-gradient(circle, #1d120acc 0 55%, #1d120a55 70%, transparent 72%); }
.mk.ziel.schlag::after { left: 5%; top: 5%; width: 90%; height: 90%; background: none; box-shadow: inset 0 0 0 5px #1d120a99; }
.mk.schach { background: radial-gradient(circle, rgba(255, 60, 40, .85) 0%, rgba(220, 30, 20, .45) 45%, transparent 72%); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .65; } }

/* Schlag-Effekt */
.fx { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; }
.fx .ring { position: absolute; inset: 20%; border-radius: 50%; border: 3px solid #ffd99a; animation: ring .55s ease-out forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; border-width: 1px; } }
.fx .splitter { position: absolute; left: 50%; top: 50%; width: 7px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #f0d4a2, #8a5a37); animation: splitter .6s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes splitter { from { transform: translate(-50%, -50%) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); opacity: 0; } }

/* Spielerleisten */
.spieler { width: var(--brett); display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff10; min-height: 44px; transition: border-color .3s, background .3s; }
.spieler.am-zug { border-color: #d7b07799; background: linear-gradient(90deg, #d7b07722, #ffffff05); }
.sp-stein svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 2px #0008); }
.sp-name { font-weight: 600; white-space: nowrap; }
.sp-beute { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sp-beute i svg { width: 20px; height: 20px; display: block; margin-left: -5px; filter: drop-shadow(0 1px 1px #000a); }
.sp-beute b { margin-left: 6px; color: var(--gold); font-size: 13px; }

/* Seitenleiste */
.seite { grid-area: seite; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; align-self: center;
  background: linear-gradient(160deg, #2a3038ee, #15181dee); border: 1px solid #ffffff14; box-shadow: 0 20px 50px #0008; max-height: calc(var(--brett) + 110px); }
.status { font: 600 18px Georgia, serif; color: var(--elfenbein); padding-bottom: 8px; border-bottom: 1px solid #ffffff14; }
.status.warn { color: #ff8a70; }
.info { color: var(--leise); font-size: 13px; }
.zugliste { list-style: none; counter-reset: z; margin: 0; padding: 0; overflow: auto; flex: 1; min-height: 120px; font: 14px/1.9 ui-monospace, Consolas, monospace; }
.zugliste li { counter-increment: z; display: grid; grid-template-columns: 34px 1fr 1fr; padding: 0 6px; border-radius: 6px; }
.zugliste li:nth-child(odd) { background: #ffffff07; }
.zugliste li::before { content: counter(z) "."; color: var(--leise); }
.seite-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.fuss { grid-area: fuss; text-align: center; color: var(--leise); font-size: 13px; padding: 6px; }
.fuss a { color: var(--gold); text-decoration: none; border-bottom: 1px solid #d7b07755; }

/* Ebenen (Menüs) */
.ebene { position: fixed; inset: 0; display: grid; place-items: center; overflow-y: auto; background: radial-gradient(circle at 50% 40%, #0e0b0c99, #0e0b0cee); backdrop-filter: blur(6px); z-index: 50; padding: 16px; animation: ein .25s ease-out; }
.ebene.versteckt { display: none; }
@keyframes ein { from { opacity: 0; } }
.karte { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; text-align: center;
  background: linear-gradient(165deg, #2c333c, #171a1f); border: 1px solid #d7b07740; box-shadow: 0 30px 80px #000c, inset 0 1px #ffffff14; animation: hoch .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes hoch { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.karte.gross { width: min(520px, 100%); padding: 0 0 22px; overflow: hidden; }
.karte.gross > :not(.titelbild) { margin-left: 26px; margin-right: 26px; }
.titelbild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.karte h1 { margin: -34px 0 0; font-size: 40px; color: var(--elfenbein); text-shadow: 0 3px 14px #000; position: relative; }
.karte h2 { margin: 0 0 6px; font-size: 26px; color: var(--elfenbein); }
.unter { margin: -6px 0 6px; color: var(--leise); }
.wahl { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.wahl-l { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--leise); }
.segmente { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #00000040; padding: 4px; border-radius: 12px; border: 1px solid #ffffff10; }
.segmente button { appearance: none; border: 0; background: none; color: var(--text); padding: 10px; border-radius: 9px; font: 600 14px inherit; font-family: inherit; cursor: pointer; transition: background .2s, color .2s; }
.segmente button.an { background: linear-gradient(#e6c48d, #b98a55); color: #2a1a0d; box-shadow: 0 3px 10px #0006; }
.umw-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.umw { appearance: none; border: 1px solid #ffffff1a; border-radius: 12px; background: radial-gradient(#8a5a37, #4a2c1b); padding: 8px 4px; color: var(--text); cursor: pointer; font: 12px inherit; font-family: inherit; }
.umw:hover { border-color: var(--gold); }
.umw svg { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 3px 3px #000a); }

/* Handy / schmale Fenster: alles untereinander */
@media (max-width: 900px) {
  :root { --brett: min(96vw, calc(100vh - 250px)); }
  #app { grid-template-columns: 1fr; grid-template-areas: "kopf" "buehne" "seite" "fuss"; padding: 8px; gap: 10px; }
  .seite { width: var(--brett); justify-self: center; max-height: none; padding: 12px; }
  .zugliste { max-height: 140px; min-height: 60px; }
  .marke-titel { font-size: 21px; }
  .koord text { font-size: 30px; }
}
@media (max-width: 900px) and (max-height: 600px) { :root { --brett: min(96vw, 82vh); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Die Figuren erwachen: Fantasy-Kulisse und bewegliche Charaktere. */
body { background: radial-gradient(ellipse at 25% 30%, #45304288, transparent 65%), radial-gradient(ellipse at 80% 60%, #182c39, #0c0c15 75%) fixed; }
body::before { content: ''; position: fixed; inset: -20px; z-index: -1; background: linear-gradient(#0a0b1bd9, #0e1018aa), url('titel-840.webp') center / cover; filter: blur(7px); opacity: .8; pointer-events: none; }
#app { position: relative; z-index: 1; }
.atmosphaere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.atmosphaere i { position: absolute; bottom: -20px; left: 8%; width: 3px; height: 3px; border-radius: 50%; background: #ffd49a; box-shadow: 0 0 9px #ff9d57; opacity: 0; animation: glutfunken 14s linear infinite; }
.atmosphaere i:nth-child(2n) { left: 87%; background: #acb8ff; box-shadow: 0 0 10px #ac84ff; }
.atmosphaere i:nth-child(3n) { left: 17%; animation-duration: 18s; }
.atmosphaere i:nth-child(4n) { left: 74%; animation-duration: 16s; }
.atmosphaere i:nth-child(5n) { left: 36%; }
.atmosphaere i:nth-child(6n) { left: 62%; }
.atmosphaere i:nth-child(2) { animation-delay: -2s; }
.atmosphaere i:nth-child(3) { animation-delay: -4s; }
.atmosphaere i:nth-child(4) { animation-delay: -6s; }
.atmosphaere i:nth-child(5) { animation-delay: -8s; }
.atmosphaere i:nth-child(6) { animation-delay: -10s; }
.atmosphaere i:nth-child(7) { animation-delay: -12s; }
.atmosphaere i:nth-child(8) { animation-delay: -3s; }
.atmosphaere i:nth-child(9) { animation-delay: -7s; }
.atmosphaere i:nth-child(10) { animation-delay: -11s; }
.atmosphaere i:nth-child(11) { animation-delay: -5s; }
.atmosphaere i:nth-child(12) { animation-delay: -9s; }
@keyframes glutfunken { 0% { transform: translate(0, 0); opacity: 0; } 15%, 65% { opacity: .6; } 100% { transform: translate(45px, -100vh); opacity: 0; } }
.brett-rahmen { box-shadow: 0 30px 60px -10px #000c, 0 0 40px #be924a15, 0 0 0 1px #ddbd7477; }
.spieler { background: linear-gradient(110deg, #281d31d9, #141b28e0); }
.spieler.am-zug { background: linear-gradient(100deg, #d7b07728, #1d253aaa); box-shadow: 0 0 17px #d7b0770f; }
.seite { gap: 9px; max-height: none; background: linear-gradient(150deg, #282536e8, #121825ed); border-color: #c7b09c33; backdrop-filter: blur(8px); }
.zugliste { min-height: 48px; max-height: 88px; }
.zug-feedback { min-height: 48px; padding: 9px 11px; font-size: 13px; }
.bedienhilfe { font-size: 11px; }
.figur-karte { display: grid; grid-template-columns: 94px 1fr; gap: 9px; padding: 6px 6px 6px 0; border: 1px solid #d7b07733; border-radius: 13px; background: radial-gradient(ellipse at 20% 85%, #b98a5538, #1a1d29 70%); min-height: 112px; }
.figur-karte.dunkle-truppe { background: radial-gradient(ellipse at 20% 85%, #8160b04a, #1a1d29 70%); border-color: #ad89d866; }
.figur-portrait { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; width: 94px; align-self: center; border-radius: 9px; }
.figur-portrait svg { width: 100%; display: block; filter: drop-shadow(0 8px 5px #0008); overflow: visible; }
.figur-portrait:hover { background: radial-gradient(#e4bd6324, transparent 70%); }
.figur-portrait:focus-visible, .armee-figur:focus-visible { outline: 2px solid #91dbff; outline-offset: 2px; }
.figur-details { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.figur-fraktion { color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.dunkle-truppe .figur-fraktion { color: #bd9ae6; }
.figur-details strong { font: 600 17px/1.2 Georgia, serif; color: #f8ebcf; margin-top: 3px; }
#figur-rolle { font-size: 11px; color: #bfb3a0; margin-top: 3px; }
.figur-details p { font-size: 11px; line-height: 1.5; color: #c6bbaa; margin: 5px 0 0; }
.armee-vorschau { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 5px 0; }
.armee-figur { appearance: none; border: 1px solid transparent; padding: 2px; border-radius: 10px; background: #ffffff04; color: var(--text); cursor: pointer; }
.armee-figur:hover { border-color: #d7b07766; background: #d7b07715; }
.armee-figur svg { display: block; width: 100%; overflow: visible; }
.armee-figur span { font-size: 10px; display: block; }
.figur-entdecken { min-height: 32px; color: #b8ad9f; font-size: 11px; line-height: 1.45; margin-top: -8px; margin-bottom: 0; }
.karte.gross { gap: 9px; }
.karte.gross h1 { font-size: 36px; }
.titelbild img { aspect-ratio: 2.2 / 1; }
.fig .fz { padding: 0; filter: drop-shadow(0 3px 2px #0008); overflow: visible; }
.fig.gewaehlt .fz { filter: drop-shadow(0 0 4px #ffde93bb) drop-shadow(0 5px 3px #0008); }
.fig.neugierig .fz { filter: drop-shadow(0 0 4px #fff1af66) drop-shadow(0 4px 3px #0008); }
.fz-vivant, .fz-corps, .fz-tete, .fz-cape, .fz-arme, .fz-bouclier { transform-box: view-box; }
.fz-vivant { transform-origin: 50% 90%; }
.fz-corps { transform-origin: 50% 74%; }
.fz-tete { transform-origin: 50% 40%; }
.fz-cape { transform-origin: 50% 40%; }
.fz-arme { transform-origin: 68% 63%; }
.fz-bouclier { transform-origin: 32% 60%; }
.fig .fz-vivant, .figur-portrait .fz-vivant, .armee-figur .fz-vivant { animation: respiration 4.2s ease-in-out infinite; animation-delay: var(--takt, 0s); }
.fig .fz-cape, .figur-portrait .fz-cape, .armee-figur .fz-cape { animation: souffle-cape 5.3s ease-in-out infinite; animation-delay: var(--takt, 0s); }
.fig .fz-yeux, .figur-portrait .fz-yeux, .armee-figur .fz-yeux { transform-box: fill-box; transform-origin: center; animation: clignement 6.7s linear infinite; animation-delay: var(--takt, 0s); }
.fz-magie { transform-box: fill-box; transform-origin: center; animation: magie 2.8s ease-in-out infinite; }
.fig.neugierig .fz-tete { transform: rotate(var(--blick, -5deg)); transition: transform .22s; }
.fig.neugierig .fz-bouclier { transform: rotate(-7deg); transition: transform .22s; }
.fig.gewaehlt .fz-vivant { animation: pret 1.6s ease-in-out infinite; }
.fig.gewaehlt .fz-arme { transform: rotate(-13deg); }
.fig.bedroht .fz-tete { animation: inquietude 1s ease-in-out infinite; }
.fig.zieht .fz-vivant { animation: pas .32s ease-in-out; }
.fig.zieht.fig-n .fz-vivant { animation: bond .32s ease-out; }
.fig.zieht.fig-r .fz-vivant { animation: golem .32s ease-in-out; }
.fig.zieht.fig-b .fz-vivant, .fig.zieht.fig-q .fz-vivant { animation: levitation .32s ease-in-out; }
.fig.greift-an .fz-arme { animation: frappe .35s ease-out; }
.fig.greift-an.fig-b .fz-magie, .fig.greift-an.fig-q .fz-magie { animation: sortilege .35s ease-out; }
.fig.gelandet .fz-vivant { animation: atterrissage .35s ease-out; }
.fig.wird-gezogen .fz-vivant { animation: porte .7s ease-in-out infinite; }
.fig.wird-gezogen .fz-cape { animation-duration: .7s; }
.begruessen .fz-tete { animation: salut 1.3s ease-in-out; }
.begruessen .fz-arme { animation: salut-arme 1.3s ease-in-out; }
.begruessen .fz-vivant { animation: celebration 1.3s ease-out; }
.begruessen .fz-magie { animation: sortilege 1.3s ease-in-out; }
@keyframes respiration { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-1.5px) scaleY(1.014); } }
@keyframes souffle-cape { 0%,100% { transform: skewX(-1deg); } 50% { transform: skewX(3deg); } }
@keyframes clignement { 0%,42%,45%,100% { transform: scaleY(1); } 43%,44% { transform: scaleY(.08); } }
@keyframes magie { 0%,100% { opacity: .75; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes pret { 0%,100% { transform: translateY(-2px) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes inquietude { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes pas { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(-4px) rotate(6deg); } }
@keyframes bond { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-23px) rotate(-12deg); } 80% { transform: translateY(-9px) rotate(8deg); } }
@keyframes golem { 0%,100% { transform: scaleY(1); } 25% { transform: scaleY(.92) rotate(-4deg); } 70% { transform: scaleY(1.06) rotate(3deg); } }
@keyframes levitation { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px) rotate(-5deg); } }
@keyframes frappe { 0% { transform: rotate(-25deg); } 55% { transform: rotate(25deg); } 100% { transform: rotate(0); } }
@keyframes sortilege { 0% { transform: scale(.8); opacity: .6; } 55% { transform: scale(1.8); opacity: 1; } 100% { transform: scale(1); } }
@keyframes atterrissage { 0% { transform: scaleY(.84) scaleX(1.08); } 45% { transform: scaleY(1.06); } 100% { transform: scale(1); } }
@keyframes porte { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes salut { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 65% { transform: rotate(8deg); } }
@keyframes salut-arme { 0%,100% { transform: rotate(0); } 25%,65% { transform: rotate(-35deg); } 45% { transform: rotate(-15deg); } }
@keyframes celebration { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-8px); } 55% { transform: translateY(-3px); } }
.fx .ring { border-color: var(--funke, #ffd99a); box-shadow: 0 0 12px var(--funke, #ffd99a); }
.fx .splitter { width: 4px; height: 4px; border-radius: 50%; background: var(--funke, #ffd99a); box-shadow: 0 0 6px var(--funke, #ffd99a); }
.spiel-pause .buehne *, .spiel-pause .figur-karte *, .spiel-pause .atmosphaere i, .tab-inaktiv *, .tab-inaktiv *::after { animation-play-state: paused !important; }
@media (max-width: 900px) {
  .figur-karte { grid-template-columns: 88px 1fr; }
  .figur-portrait { width: 88px; }
  .figur-details strong { font-size: 18px; }
  .figur-details p { font-size: 12px; }
  .seite { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphaere { display: none; }
  .fz-vivant, .fz-cape, .fz-tete, .fz-arme, .fz-yeux, .fz-magie { animation: none !important; }
}

/* Schritte über das Brett und kurze, gemeinsame Schlag-Szenen. */
.fz-direction { transform-box: view-box; transform-origin: 50% 50%; transform: scaleX(var(--face, 1)); }
.fz-jambe { transform-box: view-box; transform-origin: 50% 73%; }
.fig.zieht .fz-vivant { animation: laufen .28s ease-in-out infinite; }
.fig.zieht.fig-n .fz-vivant { animation: galopp .36s ease-in-out infinite; }
.fig.zieht.fig-r .fz-vivant { animation: golem-schritte .42s ease-in-out infinite; }
.fig.zieht.fig-b .fz-vivant, .fig.zieht.fig-q .fz-vivant { animation: laufen .32s ease-in-out infinite; }
.fig.zieht .fz-jambe-gauche { animation: schritt .28s ease-in-out infinite; }
.fig.zieht .fz-jambe-droite { animation: schritt .28s ease-in-out infinite; animation-delay: -.14s; }
.fig.zieht.fig-r .fz-jambe { animation-duration: .42s; }
.fig.zieht.fig-r .fz-jambe-droite { animation-delay: -.21s; }
.fig.zieht.fig-n .fz-jambe { animation-duration: .36s; }
.fig.zieht.fig-n .fz-jambe-droite { animation-delay: -.18s; }
.fig.zieht .fz-bouclier { animation: arm-schritt .28s ease-in-out infinite; }
.fig.zieht .fz-arme { animation: arm-schritt .28s ease-in-out infinite; animation-delay: -.14s; }
.fig.zieht .fz-cape { animation-duration: .45s; }
.fig.zieht .fz { transform: scale(1.04); }
@keyframes laufen { 0%,100% { transform: translateY(0) rotate(-2deg); } 25%,75% { transform: translateY(-4px); } 50% { transform: translateY(0) rotate(2deg); } }
@keyframes galopp { 0%,100% { transform: translateY(0) rotate(-3deg); } 35% { transform: translateY(-10px) rotate(6deg); } 70% { transform: translateY(-2px) rotate(-5deg); } }
@keyframes golem-schritte { 0%,100% { transform: translateY(0) rotate(-3deg); } 30% { transform: translateY(-2px) rotate(0); } 50% { transform: translateY(0) rotate(3deg); } }
@keyframes schritt { 0%,100% { transform: translate(3px, -2px) rotate(13deg); } 50% { transform: translate(-3px, 1px) rotate(-13deg); } }
@keyframes arm-schritt { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.fig.duell-angreifer, .fig.duell-verteidiger { z-index: 15; }
.fig.duell-angreifer { --face: -1 !important; }
.fig.duell-verteidiger { --face: 1 !important; }
.fig.duell-angreifer .fz { transform: translateX(-20%) scale(.88); transition: transform .12s; filter: drop-shadow(0 0 4px #ffe6a8) drop-shadow(0 4px 3px #000); }
.fig.duell-verteidiger .fz { transform: translateX(20%) scale(.88); transition: transform .12s; }
.fig.duell-angreifer .fz-vivant { animation: attaque .46s ease-in-out infinite; }
.fig.duell-verteidiger .fz-vivant { animation: defense .46s ease-in-out infinite; }
.fig.duell-angreifer .fz-arme { animation: coup-epee .46s ease-in-out infinite; }
.fig.duell-verteidiger .fz-bouclier, .fig.duell-verteidiger .fz-arme { animation: parade .46s ease-in-out infinite; }
.fig.duell-angreifer .fz-magie { animation: sortilege .46s ease-out infinite; }
.fig.duell-angreifer::after { content: '✦'; position: absolute; top: 25%; left: 38%; color: #fff5c9; text-shadow: 0 0 10px #ffa45f, 0 0 20px #ffcb78; font-size: 28px; animation: impact-duel .46s ease-in-out infinite; pointer-events: none; }
.fig.duell-angreifer.fig-b::after, .fig.duell-angreifer.fig-q::after { color: #c8faff; text-shadow: 0 0 10px #70e4ff, 0 0 20px #9984ff; }
@keyframes attaque { 0%,100% { transform: translateX(-3px) rotate(-7deg); } 40% { transform: translateX(8px) rotate(9deg); } 65% { transform: translateX(3px) rotate(2deg); } }
@keyframes defense { 0%,100% { transform: translateX(0) rotate(3deg); } 45% { transform: translateX(-6px) rotate(-10deg); } 65% { transform: translateX(-2px) rotate(-4deg); } }
@keyframes coup-epee { 0%,100% { transform: rotate(-35deg); } 42% { transform: rotate(45deg); } 65% { transform: rotate(8deg); } }
@keyframes parade { 0%,100% { transform: rotate(0); } 40%,60% { transform: translateY(-6px) rotate(-25deg); } }
@keyframes impact-duel { 0%,25%,70%,100% { opacity: 0; transform: scale(.2); } 45% { opacity: 1; transform: scale(1.2) rotate(20deg); } }
.schach-alarm { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: linear-gradient(120deg, #8e1d39cc, #421b2a); border: 1px solid #ff8373; border-radius: 12px; box-shadow: 0 0 22px #fc55602a; }
.schach-alarm.versteckt { display: none; }
.schach-alarm strong { font-size: 17px; line-height: 1.25; color: #fff2d9; }
.schach-alarm span { font-size: 12px; color: #ffcbc3; }
.mk.schach { background: radial-gradient(circle, #ff3828c9 0%, #d9293266 60%, transparent 80%); box-shadow: inset 0 0 0 3px #ff9c8f; }
.mk.angreifer { box-shadow: inset 0 0 0 3px #ff766e; background: #ef453133; }
.schach-linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.schach-linien path:not([fill]) { stroke: #ff766e; stroke-width: 3.5; stroke-dasharray: 11 6; fill: none; opacity: .9; }
.fig.bedroht::after { content: '!'; position: absolute; top: -9%; right: 0; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; background: #e83249; color: #fff; font: 900 20px/1 system-ui; box-shadow: 0 0 13px #ff684d; }
.fig.bedroht .fz { filter: drop-shadow(0 0 6px #ff4e4e) drop-shadow(0 4px 3px #000); }
#brett.im-schach { box-shadow: 0 0 0 2px #ff6759, 0 0 35px #dc334744; }
.spiel-pause .buehne *::after, .tab-inaktiv *::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .fz-jambe, .fz-bouclier, .fig.duell-angreifer::after { animation: none !important; }
  .fig.duell-angreifer::after { opacity: 0; }
}
