/* sah.css · Cliplea · Šahovski problem dana (v0.4.154). Tabla kao u aplikaciji SAH VESTI: klasična svetla i tamna polja, poslednji potez
   žutozelen, šah = celo polje crveno, figure „cburnett“ iz SVG sprajta; sve boje su promenljive palete (--sah-* u sajt.css, PALETA.md).
   Dugmad, poruke i prozori nose klase iz enigma.css i rec.css (rec-dugme, rec-poruka, e-kraj, rec-stat). Papir ostaje svetao i u tamnoj temi. */
.sah-zadatak { margin: 0; padding: 2px 16px 6px; text-align: center; font-family: var(--naslovni); font-weight: 800; font-size: 18px; color: var(--naslov); }
.sah-zadatak b { color: var(--akcenat); }
.sah-alati { align-items: center; }
.sah-brojac { margin-left: auto; font-family: var(--naslovni); font-weight: 800; font-size: 14px; color: var(--sivo); white-space: nowrap; }
.sah-tabla { width: min(100% - 32px, 480px); margin: 0 auto 8px; }
.sah-polja { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); border-radius: 8px; overflow: hidden; box-shadow: var(--papir-senka); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sah-polje { position: relative; aspect-ratio: 1 / 1; }
.sah-svetlo { background: var(--sah-svetlo); }
.sah-tamno { background: var(--sah-tamno); }
.sah-polje::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.sah-poslednji::before { background: var(--sah-potez); }
.sah-izabrano::before, .sah-cilj::before { background: var(--sah-izbor); }
.sah-u-sahu::before { background: var(--sah-sah); }
.sah-meta::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; border-radius: 50%; transform: translate(-50%, -50%); background: var(--sah-meta); pointer-events: none; }
.sah-meta.sah-uzima::after { width: 100%; height: 100%; box-sizing: border-box; background: none; border: 6px solid var(--sah-meta); }
.sah-fig { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.sah-moze .sah-fig { cursor: grab; }
.sah-vuce .sah-fig { opacity: .3; }
.sah-duh { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 60; will-change: transform; }
.sah-duh .sah-fig, .sah-klizac .sah-fig { position: static; filter: drop-shadow(0 4px 6px rgba(21, 26, 45, .35)); }
.sah-klizac { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; transition: transform .22s ease; }
.sah-koord { position: absolute; font-family: var(--naslovni); font-weight: 700; font-size: clamp(8px, 2.2vw, 11px); line-height: 1; pointer-events: none; opacity: .9; z-index: 2; }
.sah-koord-red { left: 2px; top: 2px; }
.sah-koord-kol { right: 3px; bottom: 2px; }
.sah-svetlo .sah-koord { color: var(--sah-tamno); }
.sah-tamno .sah-koord { color: var(--sah-svetlo); }
.sah-poruka { margin: 0 auto 8px; font-size: 14px; }   /* pilula iz rec.css (teget, centrirana); uvek ima tekst, pa tabla ne poskakuje */
.sah-poruka.dobro { color: var(--zelena-svetla); }
.sah-poruka.lose { color: var(--roze-svetla); }
.sah-dugmad { display: flex; gap: 8px; justify-content: center; padding: 0 16px 8px; }
.sah-resenje.sah-istaknuto { background: var(--akcenat); border-color: var(--akcenat); color: var(--papir); }
.sah-potezi { margin: 0 16px 8px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--mastilo); font-variant-numeric: tabular-nums; }
.sah-potezi b { color: var(--naslov); }
.sah-izvor, .sah-potpis { margin: 0 16px 8px; text-align: center; font-size: 13px; color: var(--sivo); }
.sah-potpis { font-size: 11px; }
.sah-potpis a { color: inherit; }
.sah-tresi { animation: sah-tresi .3s; }
@keyframes sah-tresi { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sah-kraj-beleska { font-size: 14px; line-height: 1.5; color: var(--mastilo); }
.sah-kraj-izvor { font-size: 13px; color: var(--sivo); }
.sah-kraj .rec-stat { flex-wrap: wrap; gap: 12px 14px; }
.sah-kraj .rec-stat b { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .sah-klizac { transition: none; } .sah-tresi { animation: none; } }
@media (min-width: 900px) { .sah-tabla { width: min(100% - 32px, 520px); } .sah-zadatak { font-size: 20px; } }
