/* SnoopyWap – točak sreće, kockice i novčić */
.tck { max-width: 560px; margin: 0 auto; }
.tck [hidden] { display: none !important; }

/* kartice (tabovi) */
.tck-kartice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tck-jezicak { min-height: 48px; padding: 0 6px; border: 2px solid var(--ivica); border-radius: 14px; background: var(--kartica); color: var(--tekst); font: 700 16px var(--sans); cursor: pointer; }
.tck-jezicak[aria-selected="true"] { background: var(--akcent); border-color: var(--akcent); color: var(--na-akcentu); }
.tck-jezicak:focus-visible, .tck-malo:focus-visible, .tck-platno:focus-visible { outline: 3px solid var(--akcent3-t); outline-offset: 2px; }
.tck-ploca { text-align: center; }

/* točak */
.tck-pitanje { margin: 0 0 10px; font-size: 20px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.tck-okvir { position: relative; width: min(100%, 340px); margin: 0 auto; padding-top: 14px; }
.tck-platno { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.tck-platno:active { cursor: grabbing; }
.tck-strelica { position: absolute; top: 0; left: 50%; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 30px solid var(--tekst); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); pointer-events: none; }
.tck-ishod { margin: 12px 0 0; min-height: 1.3em; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--slabo); overflow-wrap: anywhere; }
.tck-ishod.tck-ima { font-size: 32px; font-weight: 800; color: var(--tekst); animation: tck-pojava .35s ease-out; }
@keyframes tck-pojava { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tck-red { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.tck-zavrti { min-width: 160px; }
.tck .dugme:disabled { opacity: .5; cursor: default; }
.tck-savet { margin: 10px 0 0; color: var(--slabo); font-size: 15px; }
.tck-izbaci { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 16px; cursor: pointer; }
.tck-izbaci input { width: 22px; height: 22px; margin: 0; accent-color: var(--akcent3-t); flex: 0 0 auto; }
.tck-izvuceni { margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--kartica2); }
.tck-izvuceni-tekst { margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.tck-malo { min-height: 44px; padding: 0 14px; border: 2px solid var(--ivica); border-radius: 999px; background: var(--kartica); color: var(--tekst); font: 700 15px var(--sans); cursor: pointer; }
.tck-malo[aria-pressed="true"] { background: var(--akcent3); border-color: var(--akcent3); color: var(--na-akcentu); }

/* unos stavki */
.tck-unos { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ivica); text-align: left; }
.tck-oznaka { display: block; margin: 12px 0 6px; font-size: 15px; font-weight: 700; color: var(--slabo); }
.tck-oznaka:first-child { margin-top: 0; }
.tck-predlosci, .tck-izbor { display: flex; flex-wrap: wrap; gap: 8px; }
.tck-izbor { justify-content: center; }
.tck-polje { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ivica); border-radius: 14px; background: var(--polje); color: var(--tekst); font: 17px/1.45 var(--sans); }
.tck-polje:focus { outline: none; border-color: var(--akcent3); }
.tck-stavke { resize: vertical; min-height: 150px; }
.tck-brojac { margin: 8px 0 0; color: var(--slabo); font-size: 15px; }

/* kockice */
.tck-sto { display: flex; justify-content: center; gap: 20px; min-height: 96px; margin: 24px 0 8px; }
.tck-kocka { box-sizing: border-box; width: 92px; height: 92px; padding: 13px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 5px; border: 2px solid var(--ivica); border-radius: 18px; background: var(--kartica2); box-shadow: var(--senka); }
.tck-tacka { border-radius: 50%; background: var(--tekst); visibility: hidden; }
.tck-kocka[data-v="1"] .tck-tacka:nth-child(5),
.tck-kocka[data-v="2"] .tck-tacka:nth-child(1), .tck-kocka[data-v="2"] .tck-tacka:nth-child(9),
.tck-kocka[data-v="3"] .tck-tacka:nth-child(1), .tck-kocka[data-v="3"] .tck-tacka:nth-child(5), .tck-kocka[data-v="3"] .tck-tacka:nth-child(9),
.tck-kocka[data-v="4"] .tck-tacka:nth-child(1), .tck-kocka[data-v="4"] .tck-tacka:nth-child(3), .tck-kocka[data-v="4"] .tck-tacka:nth-child(7), .tck-kocka[data-v="4"] .tck-tacka:nth-child(9),
.tck-kocka[data-v="5"] .tck-tacka:nth-child(1), .tck-kocka[data-v="5"] .tck-tacka:nth-child(3), .tck-kocka[data-v="5"] .tck-tacka:nth-child(5), .tck-kocka[data-v="5"] .tck-tacka:nth-child(7), .tck-kocka[data-v="5"] .tck-tacka:nth-child(9),
.tck-kocka[data-v="6"] .tck-tacka:nth-child(1), .tck-kocka[data-v="6"] .tck-tacka:nth-child(3), .tck-kocka[data-v="6"] .tck-tacka:nth-child(4), .tck-kocka[data-v="6"] .tck-tacka:nth-child(6), .tck-kocka[data-v="6"] .tck-tacka:nth-child(7), .tck-kocka[data-v="6"] .tck-tacka:nth-child(9) { visibility: visible; }
.tck-baca { animation: tck-bacanje .36s linear infinite; }
.tck-baca:nth-child(2) { animation-direction: reverse; }
@keyframes tck-bacanje { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-10px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-10px); } 100% { transform: rotate(360deg) translateY(0); } }

/* novčić */
.tck-scena { display: grid; place-items: center; height: 170px; margin-top: 12px; perspective: 700px; }
.tck-novcic { position: relative; width: 130px; height: 130px; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.2, .65, .3, 1); }
.tck-lice { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; border-radius: 50%; background: var(--zuta); color: var(--na-akcentu); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), var(--senka); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tck-lice b { font-size: 46px; line-height: 1; }
.tck-lice span { font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.tck-pismo { background: var(--akcent3); transform: rotateY(180deg); }
.tck-skok { animation: tck-skok 1.5s ease-in-out; }
@keyframes tck-skok { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-28px); } }
.tck-brojac-n { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ivica); }
.tck-broj { margin: 0; font-size: 17px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .tck-ishod.tck-ima, .tck-baca, .tck-skok { animation: none; }
}
