/* 복사 알림·복사됨 버튼(copy.js) — academy 화면과 worker 가 그리는 flow 화면이 함께 쓴다.
   색은 두 토큰 이름(--ink·--paper / --foreground·--background) 어느 쪽이든 따라 라이트·다크가 맞는다. */
.ac-copytoast{ position:fixed; left:50%; bottom:calc(88px + env(safe-area-inset-bottom)); z-index:300; max-width:calc(100vw - 32px); width:max-content;
  display:flex; align-items:center; gap:10px; padding:14px 20px; border-radius:12px; font:700 16px/1.5 Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background:var(--ink, var(--foreground, #0a0a0a)); color:var(--paper, var(--background, #fff)); box-shadow:0 8px 28px rgba(0,0,0,.28);
  opacity:0; transform:translate(-50%, 12px); pointer-events:none; visibility:hidden; transition:opacity .18s var(--ease-arrive, cubic-bezier(.25,.8,.25,1)), transform .18s var(--ease-arrive, cubic-bezier(.25,.8,.25,1)), visibility 0s linear .18s; }
.ac-copytoast.is-on{ opacity:1; transform:translate(-50%, 0); visibility:visible; transition-delay:0s; }
.ac-copytoast .ac-cp-ck{ flex:none; width:22px; height:22px; padding:3px; border-radius:50%; background:#FFD60A; color:#0a0a0a; box-sizing:border-box; }
.ac-copytoast.is-bad{ background:#b3261e; color:#fff; }
.is-copied .ac-cp-ck{ flex:none; width:18px; height:18px; stroke-width:2.8; }
@media (min-width:900px){ .ac-copytoast{ bottom:40px; } }
/* 복사됨 = 같은 칸에서 위로 굴림(stageshow 11-03): 원래 글(.cp-a)이 위로 나가고 「✓ 복사됐어요」(.cp-b)가 아래에서 들어온다.
   칸 크기는 원래 글이 정한다(.cp-b 는 겹쳐 놓고 가운데 맞춤) — 단추 폭이 바뀌지 않는다. 위아래만 잘라 글이 칸 밖으로 비치지 않게 */
.cp-roll{ display:inline-grid; place-items:center; clip-path:inset(0 -100vw); max-width:100%; }
.cp-a, .cp-b{ grid-area:1 / 1; display:inline-flex; align-items:center; justify-content:center; gap:inherit; min-width:0;
  transition:transform .2s var(--ease-travel, cubic-bezier(.45,0,.1,1)), opacity .2s var(--ease-travel, cubic-bezier(.45,0,.1,1)); }
.cp-a{ gap:6px; }
.cp-b{ gap:6px; width:0; white-space:nowrap; transform:translateY(110%); opacity:0; }
.is-copied .cp-a{ transform:translateY(-110%); opacity:0; }
.is-copied .cp-b{ transform:none; opacity:1; }
@media (prefers-reduced-motion:reduce){ .ac-copytoast{ transition:none; transform:translate(-50%, 0); } .cp-a, .cp-b{ transition:none; } }
