/* Coaching in learning modes (js/play/coach.js): the "Better move available" bar, the quiet "Strong move" note and the arrow. */
#coachLock{position:fixed;inset:0;z-index:70;display:none}
#coachLock.on{display:block}
.coachbar{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:440px;z-index:71;padding:16px 16px calc(14px + env(safe-area-inset-bottom));background:#fff;border-radius:24px 24px 0 0;
  box-shadow:0 -14px 34px -14px rgba(21,23,28,.32);border-top:3px solid var(--coral);transform:translateY(110%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s .3s}
.coachbar.on{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.coachbar .cbtx{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.coachbar .cbtx b{font-family:Sora,sans-serif;font-size:17px;font-weight:600;color:var(--ink)}
.coachbar .cbtx span{font-size:14px;color:var(--mute)}
.coachbar .cbacts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.coachbar .btn:disabled{opacity:.5}
.coachnote{position:fixed;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));transform:translate(-50%,8px);z-index:71;padding:6px 14px;border-radius:999px;background:#fff;color:#3E8E5E;
  font-size:13px;font-weight:600;box-shadow:0 6px 18px -8px rgba(21,23,28,.35);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.coachnote.neutral{color:var(--ink)}
.coachnote.on{opacity:1;transform:translate(-50%,0)}
.coacharrow{position:absolute;inset:0;pointer-events:none;z-index:40}
.coacharrow svg{position:absolute;inset:0;width:100%;height:100%}
@media (prefers-reduced-motion:reduce){.coachbar,.coachbar.on,.coachnote{transition:none}}

/* the pale amber band for a playable but worse move: the coach goes worried (shocked after a big loss) above the board */
.coachbar{background:linear-gradient(rgba(232,168,56,.16),rgba(232,168,56,.16)),#fff}
.coachbar .cbtx b{color:#9A6A12;font-weight:700}
