/* Schach-Rätsel des Tages */
.buehne.schach { --sc-hell: #ecdfc2; --sc-dunkel: #b48a54; --sc-k-hell: #9a7442; --sc-k-dunkel: #f6ecd6; }
.sc-auftrag { text-align: center; font: 600 17px/1.3 var(--schrift-titel); margin: 4px 0 10px; color: var(--text); }
.sc-rahmen { display: flex; justify-content: center; margin: 0 0 8px; }
.sc-brett { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); width: min(480px, 100%); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden; border: 3px solid var(--gold-dunkel); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; container-type: inline-size; }
.sc-feld { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; cursor: default; }
.sc-feld.hell { background: var(--sc-hell); }
.sc-feld.dunkel { background: var(--sc-dunkel); }
.sc-feld.eigen { cursor: grab; }
.sc-feld.letzter::before, .sc-feld.gewaehlt::before, .sc-feld.schach::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sc-feld.letzter::before { background: rgba(214, 190, 60, .42); }
.sc-feld.gewaehlt::before { background: rgba(40, 190, 175, .55); }
.sc-feld.schach::before { background: radial-gradient(circle, rgba(239, 60, 60, .95) 0%, rgba(239, 60, 60, .55) 40%, rgba(239, 60, 60, 0) 72%); }
.sc-feld.ziel::after { content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(20, 110, 100, .55); pointer-events: none; }
.sc-feld.schlag::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 5px solid rgba(20, 110, 100, .6); pointer-events: none; }
.sc-feld.ziel, .sc-feld.schlag { cursor: pointer; }
.sc-fig { position: relative; z-index: 2; font: 400 44px/1 "DejaVu Sans", "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", "Arial Unicode MS", serif;
  font-size: 9.6cqw; pointer-events: none; transition: transform .08s; }
.sc-fig.weiss { color: #fbf8f1; text-shadow: 0 0 1px #1c1c1c, 1px 0 0 #1c1c1c, -1px 0 0 #1c1c1c, 0 1px 0 #1c1c1c, 0 -1px 0 #1c1c1c, 0 2px 3px rgba(0, 0, 0, .35); }
.sc-fig.schwarz { color: #1d1a17; text-shadow: 0 0 1px rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .3); }
.sc-fig.zieht { z-index: 10; transition: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.sc-k { position: absolute; font: 700 11px/1 var(--schrift); font-style: normal; pointer-events: none; z-index: 1; }
.sc-reihe { top: 3px; left: 4px; }
.sc-linie { bottom: 3px; right: 4px; }
.sc-feld.hell .sc-k { color: var(--sc-k-hell); }
.sc-feld.dunkel .sc-k { color: var(--sc-k-dunkel); }
.sc-brett.wackeln { animation: sc-wackeln .45s; border-color: var(--schlecht); }
.sc-brett.matt { border-color: var(--gut); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gut) 30%, transparent), 0 18px 40px -18px rgba(0, 0, 0, .55); }
.sc-brett.erledigt { opacity: .8; }
@keyframes sc-wackeln { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.sc-protokoll { text-align: center; font: 600 15px/1.5 var(--schrift); color: var(--text-2); margin: 4px 0 0; min-height: 1.5em; }
.sc-protokoll span { white-space: nowrap; margin: 0 2px; }
.sc-protokoll span.ich { color: var(--teal); }
.sc-info { min-height: 1.4em; margin-top: 4px; }
.sc-info.sc-gut { color: var(--gut); font-weight: 600; }
.sc-info.sc-schlecht { color: var(--schlecht); font-weight: 600; }
#sc-fehler.sc-schlecht { color: var(--schlecht); border-color: color-mix(in srgb, var(--schlecht) 45%, transparent); }
.sc-loesung { font-weight: 600; color: var(--teal); }
@media (max-width: 520px) {
  .sc-k { font-size: 9px; }
  .sc-reihe { top: 2px; left: 2px; } .sc-linie { bottom: 2px; right: 2px; }
  .sc-feld.schlag::after { border-width: 3px; }
  .sc-auftrag { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .sc-brett.wackeln { animation: none; } }
