/* Joculus Studios — wiki-dame-meister.css
   Nur für das Dame-Meister-Wiki: spielbares Brett, Bot-Galerie, Farbtafeln.
   Das Brett selbst zeichnet js/wiki-dame-meister.js im Stil „Klassisch“ der App. */

/* ---------- Brett ---------- */
.dm-board { position: relative; margin: 20px 0 30px; max-width: 520px; }
.dm-board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.86rem; color: var(--text-faint); min-height: 1.4em; }
.dm-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: -1px; }
.dm-dot.w { background: #F0E4CE; box-shadow: inset 0 0 0 1px #B99A62; }
.dm-dot.b { background: #303936; box-shadow: inset 0 0 0 1px #6A7871; }
.dm-svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-card); touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.dm-svg text { font-family: var(--font-body); }
.dm-hit { cursor: pointer; }
.dm-piece { will-change: transform; }
.dm-piece-in { transform-box: fill-box; transform-origin: center; }
.dm-piece-in.weg { transform: scale(0.2); opacity: 0; }
.dm-board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.dm-btn {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer;
  background: var(--surface); color: var(--text); font: 600 0.88rem var(--font-body);
}
.dm-btn:hover { background: var(--surface-hover); }
.dm-btn:focus-visible, .dm-select select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dm-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dm-select { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.dm-select select { max-width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text); font: 600 0.88rem var(--font-body); }
.dm-board-msg { min-height: 1.6em; margin: 10px 0 0 !important; font-size: 0.9rem; color: var(--text-faint); }
.dm-geloest .dm-svg { box-shadow: 0 0 0 3px #E2C66B, 0 0 40px -6px rgba(226, 198, 107, 0.7); transition: box-shadow 0.6s; }
/* „Dame!“-Plakette (DameGameScreen.tsx: Pille, Krone, 15 px fett, FadeIn 180 / FadeOut 240 ms) */
.dm-dame-flash {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: #226B64; color: #FFFBF0; font: 800 15px var(--font-body); letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); pointer-events: none; animation: dm-ein 180ms ease-out both;
}
.dm-dame-flash.weg { animation: dm-aus 240ms ease-in both; }
@keyframes dm-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-aus { from { opacity: 1; } to { opacity: 0; } }

/* Zwei Bretter nebeneinander, wo Platz ist */
.dm-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 24px; }
.dm-pair .dm-board { margin-bottom: 10px; }

/* ---------- Bot-Duell ---------- */
.wiki-content .dm-bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 18px 0 28px; padding: 0; list-style: none; max-width: none !important; }
.dm-bot { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 0 !important; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.dm-bot img { grid-row: span 3; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.dm-bot b { color: var(--text); font-size: 0.98rem; line-height: 1.3; }
.dm-bot .dm-bot-nr { color: var(--text-faint); font-weight: 400; font-size: 0.8rem; margin-right: 4px; }
.dm-bot p { margin: 0 !important; font-size: 0.86rem; line-height: 1.45; }
.dm-bot .dm-bot-ki { font-size: 0.76rem; color: var(--text-faint); }
.dm-stufe { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
.dm-stufe.easy { background: rgba(92, 168, 78, 0.18); color: #8ed37f; }
.dm-stufe.medium { background: rgba(226, 198, 107, 0.18); color: #e8cf7a; }
.dm-stufe.hard { background: rgba(224, 106, 85, 0.18); color: #f19a88; }
.dm-stufe.unfair { background: rgba(163, 110, 230, 0.2); color: #c7a4f5; }

/* ---------- Farbtafeln (Bretter, Steine) ---------- */
.dm-swatch-board { display: inline-grid; grid-template-columns: repeat(4, 12px); grid-auto-rows: 12px; padding: 4px; border-radius: 4px; vertical-align: middle; }
.dm-swatch-board i { display: block; }
.dm-swatch {display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.wiki-content .dm-kronen { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 16px 0 26px; padding: 0; list-style: none; max-width: none !important; }
.dm-kronen li { margin: 0 !important; padding: 12px 10px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); font-size: 0.84rem; line-height: 1.4; }
.dm-kronen li b { display: block; color: var(--text); font-size: 0.95rem; }
.dm-kronen .dm-paar { display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; }
.dm-stein { width: 46px; height: 46px; }

@media (max-width: 600px) {
  .dm-board { max-width: none; }
  .dm-select { flex-wrap: wrap; }
}
