/* Turn ownership stays visible without covering the cards. */
.memory-page .turn-line { flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;margin-top:5px;padding:5px 12px;border:1px solid #77917b;border-radius:12px;background:#edf4e8;color:#244a34; }
.memory-page #turn-portrait { width:34px;height:34px;object-fit:contain;flex-shrink:0;border-radius:50%;background:#fffdf4; }
.memory-page .turn-copy { display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left; }
.memory-page .turn-copy strong { font-size:16px;line-height:1.15; }
.memory-page .turn-copy>span { font-size:11px;line-height:1.3;color:#3e5947; }
.memory-page #play[data-turn="computer"] .turn-line,.memory-page #play[data-turn="two"] .turn-line { background:#f0eaf4;border-color:#9679a6;color:#593768; }
.memory-page #play[data-turn="computer"] .turn-copy>span,.memory-page #play[data-turn="two"] .turn-copy>span { color:#684d75; }
.memory-page .player-score:not(.active-player) { opacity:.65; }
.memory-page .player-score.active-player { border-color:#355c3c;box-shadow:0 0 0 2px #355c3c;background:#edf4e8; }
.memory-page #player-two.active-player { border-color:#785489;box-shadow:0 0 0 2px #785489;background:#f0eaf4; }
.memory-page .active-player .player-identity small { font-weight:750;color:inherit; }
.memory-page .turn-dots { display:none;gap:4px; }
.memory-page .is-thinking .turn-dots { display:flex; }
.memory-page .turn-dots i { width:5px;height:5px;background:currentColor;border-radius:50%;animation:turn-think 1.5s ease-in-out infinite; }
.memory-page .turn-dots i:nth-child(2) { animation-delay:.2s; }
.memory-page .turn-dots i:nth-child(3) { animation-delay:.4s; }
@keyframes turn-think { 50% { opacity:.25; } }
.memory-page .board-message { height:34px;min-height:34px;padding:3px 0; }
.memory-page .board-message p { color:#52624a;font-size:11px; }
.memory-page #play[data-phase="handoff"] .board-message,.memory-page #play[data-phase="preview"] .board-message { height:48px;min-height:48px; }
.memory-page #play[data-turn="computer"] .card,.memory-page #play[data-phase="handoff"] .card { cursor:default; }
@media (max-width:600px), (max-height:500px) {
  .memory-page .turn-line { min-height:43px;padding:4px 8px;gap:7px;margin-top:4px; }
  .memory-page #turn-portrait { width:28px;height:28px; }
  .memory-page .turn-copy strong { font-size:14px; }
  .memory-page .turn-copy>span { font-size:10px; }
  .memory-page .board-message { height:30px;min-height:30px; }
  .memory-page .board-message p { font-size:10px;line-height:1.3; }
}
@media (prefers-reduced-motion:reduce) { .memory-page .turn-dots i { animation:none; } }
.reduce-motion .memory-page .turn-dots i { animation:none; }
.memory-page #speed-note { display:block;margin-top:8px;max-width:48ch;font-size:12px;line-height:1.5;color:#52624a; }
