/* SnoopyWap – Vešalica */
.ves-okvir { max-width: 520px; margin: 0 auto; padding: 12px; box-sizing: border-box; background: var(--kartica); color: var(--tekst); border: 1px solid var(--ivica); border-radius: var(--radius); box-shadow: var(--senka); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.ves-okvir * { box-sizing: border-box; }
.ves-okvir [hidden] { display: none !important; }

.ves-glava { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.ves-naslov { margin: 0; font-size: 22px; line-height: 1.2; }
.ves-niz { background: var(--akcent3); color: var(--na-akcentu); border-radius: 999px; padding: 2px 10px; font-size: 15px; font-weight: 700; }
.ves-opis { margin: 0 0 10px; color: var(--slabo); font-size: 15px; }

/* oblasti */
.ves-oblasti { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ves-cip { min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--ivica); border-radius: 999px; background: var(--kartica2); color: var(--tekst); font: 600 15px var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ves-cip.ves-izabran { background: var(--akcent3); border-color: var(--akcent3-t); color: var(--na-akcentu); }

/* crtež: telefon i baterija */
.ves-slika { display: flex; justify-content: center; margin: 0 0 6px; }
.ves-crtez { display: block; width: 280px; max-width: 100%; height: auto; }
.ves-c-telo { fill: var(--kartica2); stroke: var(--tekst); stroke-width: 3; }
.ves-c-ekran { stroke: var(--tekst); stroke-width: 2; }
.ves-c-sitno { fill: none; stroke: var(--slabo); stroke-width: 2; stroke-linecap: round; }
.ves-c-pun { fill: var(--akcent); }
.ves-c-pola { fill: var(--zuta); }
.ves-c-malo { fill: var(--akcent2); }
.ves-c-ugasen { fill: var(--ivica); }
.ves-c-lice { fill: none; stroke: var(--na-akcentu); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ves-c-lice .ves-c-puno { fill: var(--na-akcentu); stroke-width: 1; }
.ves-c-lice.ves-c-san { stroke: var(--slabo); }
.ves-c-bat { fill: var(--polje); stroke: var(--tekst); stroke-width: 3; }
.ves-c-kapa { fill: var(--tekst); }
.ves-c-crtica { stroke: var(--na-akcentu); stroke-width: 1; }
.ves-c-crtica.ves-c-prazna { fill: var(--ivica); stroke: none; opacity: .55; }
.ves-c-tekst { fill: var(--tekst); font: 700 15px var(--sans); }
.ves-c-pod { fill: var(--slabo); font: 400 15px var(--sans); }

/* reč */
.ves-rec { display: flex; justify-content: center; gap: 3px; margin: 0 0 2px; }
.ves-polje { flex: 1 1 0; min-width: 0; max-width: 34px; height: 38px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; border-bottom: 3px solid var(--tekst); font-size: 20px; font-weight: 800; line-height: 1.2; text-transform: uppercase; overflow: hidden; }
.ves-polje.ves-dvojno { font-size: 15px; letter-spacing: -1px; padding-bottom: 4px; }
.ves-polje.ves-propusteno { color: var(--akcent2-t); border-bottom-color: var(--akcent2-t); }
.ves-oblast { margin: 0; text-align: center; color: var(--slabo); font-size: 15px; }
.ves-poruka { margin: 2px 0 6px; min-height: 23px; text-align: center; font-size: 15px; color: var(--tekst); overflow-wrap: anywhere; }

/* tastatura: 30 slova, 6 kolona */
.ves-tastatura { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; max-width: 420px; margin: 0 auto; }
.ves-taster { min-height: 44px; min-width: 40px; padding: 0; border: 2px solid var(--ivica); border-radius: 10px; background: var(--kartica2); color: var(--tekst); font: 700 18px var(--sans); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ves-taster:active { transform: scale(.94); }
.ves-taster[disabled] { cursor: default; transform: none; }
.ves-taster.ves-pogodak { background: var(--akcent); border-color: var(--akcent-t); color: var(--na-akcentu); }
.ves-taster.ves-promasaj { background: transparent; border-style: dashed; color: var(--slabo); opacity: .75; }

.ves-radnje { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; margin: 8px auto 0; }
.ves-okvir .dugme { width: 100%; min-height: 48px; padding-left: 10px; padding-right: 10px; font-size: 16px; }
.ves-okvir .dugme[disabled] { opacity: .5; cursor: not-allowed; }
.ves-okvir button:focus-visible { outline: 3px solid var(--akcent3-t); outline-offset: 2px; }

/* kraj partije */
.ves-kraj { margin-top: 10px; }
.ves-ishod { margin: 0 0 4px; text-align: center; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.ves-ishod.ves-dobro { color: var(--akcent-t); }
.ves-osvojeno { width: fit-content; margin: 0 auto 4px; padding: 2px 14px; border-radius: 999px; background: var(--zuta); color: var(--na-akcentu); font-weight: 700; }
.ves-stat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 12px; }
.ves-stavka { grid-column: span 2; background: var(--kartica2); border-radius: 12px; padding: 8px 4px; text-align: center; }
.ves-stavka:nth-child(n+4) { grid-column: span 3; }
.ves-stavka strong { display: block; font-size: 22px; line-height: 1.2; }
.ves-stavka span { display: block; font-size: 15px; color: var(--slabo); }
@media (min-width: 480px) {
  .ves-okvir { padding: 18px; }
  .ves-stat { grid-template-columns: repeat(5, 1fr); }
  .ves-stavka, .ves-stavka:nth-child(n+4) { grid-column: span 1; }
  .ves-polje { font-size: 22px; }
  .ves-polje.ves-dvojno { font-size: 17px; }
}
