/* ============================================================
   Premetanka
   ============================================================ */

#lengths .chip.on { background: var(--grape); box-shadow: 0 5px 0 var(--grape-d); }
#langs .chip.on   { background: var(--mint);  box-shadow: 0 5px 0 var(--mint-d); }
.chip.lang { gap: 1px; }
.chip.lang .l-flag { font-size: 1.15rem; line-height: 1; }
.chip.lang .l-name { font-size: .82rem; line-height: 1.1; font-weight: 500; opacity: .9; }

#game { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.board {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  gap: clamp(10px, 3vh, 28px);
}

/* Prazna mesta za črke */
.slots, .pool {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 12px);
  flex-wrap: wrap;
}

.slot, .letter {
  --size: clamp(46px, min(11vw, 12vh), 88px);
  width: var(--size);
  height: var(--size);
  border-radius: 18px;
  font-weight: 700;
  font-size: calc(var(--size) * .52);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slot {
  background: rgba(255,255,255,.55);
  border: 3px dashed rgba(35,48,74,.22);
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.slot.filled {
  background: #fff;
  border-style: solid;
  border-color: rgba(35,48,74,.12);
  box-shadow: 0 5px 0 rgba(35,48,74,.12);
  cursor: pointer;
}
.slot.right {
  background: var(--mint); border-color: var(--mint-d); color: #fff;
  box-shadow: 0 5px 0 var(--mint-d);
}
.slot.moved { animation: shake .35s ease; }

.letter {
  font-family: inherit;
  background: #fff;
  border: 3px solid rgba(35,48,74,.10);
  box-shadow: 0 5px 0 rgba(35,48,74,.13);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}
.letter:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(35,48,74,.13); }
.letter.used { opacity: 0; pointer-events: none; }

.pool.locked .letter, .slots.locked .slot { pointer-events: none; }

.message {
  text-align: center;
  min-height: 1.8em;
  font-size: clamp(.95rem, 2.6vh, 1.3rem);
  font-weight: 600;
  color: var(--ink-soft);
}
.message.good { color: var(--mint-d); }
.message.bad  { color: var(--coral-d); }

.score-chip.current .val { color: var(--grape-d); }

@media (orientation: landscape) and (max-height: 560px) {
  .board { gap: 10px; }
  .slot, .letter { --size: clamp(38px, 9.5vh, 62px); border-radius: 14px; }
}
@media (orientation: landscape) and (max-height: 430px) {
  .board { gap: 7px; }
  .slot, .letter { --size: clamp(32px, 10vh, 50px); border-radius: 11px; }
  .message { font-size: .82rem; min-height: 1.4em; }
}
