/* Word Duel — letter tiles, the word line and the played-words log. */
.wd-score { display: flex; gap: 10px; width: min(100%, 420px); }
.wd-side { flex: 1; min-width: 0; background: var(--card); border: 2px solid transparent; border-radius: 12px; padding: 6px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; transition: border-color .2s, box-shadow .2s; }
.wd-side.turn { border-color: var(--gold); box-shadow: 0 0 12px #ffc53344; }
.wd-side .who { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-side b { font-size: 24px; grid-row: span 2; }
.wd-side .dots { display: flex; gap: 3px; }
.wd-side .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.wd-side .dots i.on { background: var(--primary); }
.wd-side b.bump { animation: wd-bump .5s ease; }
@keyframes wd-bump { 50% { transform: scale(1.4); color: var(--gold); } }
.wd-turn { font-weight: 700; min-height: 24px; margin: 8px 0 6px; text-align: center; }
.wd-word { min-height: 58px; display: flex; gap: 5px; justify-content: center; align-items: center; width: min(100%, 420px); border-bottom: 2px dashed var(--line); padding-bottom: 6px; }
.wd-word.bad { animation: wd-shake .35s ease; }
.wd-word.good .tile { animation: wd-good .5s ease both; }
@keyframes wd-shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes wd-good { 50% { transform: translateY(-14px) scale(1.1); background: linear-gradient(160deg, #b9f6ca, #3ddc84); } }
.wd-rack { display: flex; gap: 7px; justify-content: center; margin: 14px 0 8px; flex-wrap: wrap; }
.tile { width: 44px; height: 50px; border-radius: 10px; background: linear-gradient(160deg, #fff4d6, #f3d48b); color: #4a2a00; font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #b88d2e, 0 6px 10px #0006; cursor: pointer; user-select: none; position: relative; transition: transform .12s, opacity .15s; }
.tile small { position: absolute; right: 4px; bottom: 2px; font-size: 9px; font-weight: 700; }
.tile:active { transform: translateY(2px); }
.tile.used { opacity: .2; pointer-events: none; transform: scale(.85); }
.tile.hint { box-shadow: 0 0 0 3px var(--gold), 0 0 14px 3px #ffc533aa; }
.wd-word .tile { width: 38px; height: 44px; font-size: 22px; animation: wd-in .18s ease both; }
@keyframes wd-in { from { transform: translateY(30px) scale(.6); opacity: 0; } }
.wd-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wd-actions .tnz-btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
.wd-tools { display: flex; gap: 10px; justify-content: center; margin-top: 10px; min-height: 40px; }
.wd-log { list-style: none; padding: 0; margin: 10px 0 0; width: min(100%, 420px); display: flex; flex-direction: column; gap: 4px; }
.wd-log li { display: flex; justify-content: space-between; background: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 14px; animation: wd-in .3s ease both; }
.wd-log li.me { border-left: 4px solid var(--primary); }
.wd-log li.opp { border-left: 4px solid var(--muted); }
.wd-log li b { letter-spacing: 1px; text-transform: uppercase; }
