/* 튜토리얼: 말풍선(게임 화면 안)과 손가락·강조 레이어(body 위, 입력은 통과) */
.game.tut-on .tip { display: none; }

.tut-bubble { position: relative; display: flex; align-items: center; gap: 8px; min-height: 60px; margin-bottom: 10px; padding: 8px 10px 8px 8px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.tut-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; border-radius: 3px; transform: rotate(45deg); box-shadow: 2px 2px 0 #ecd9d0; }
.tut-face { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff1cf; display: flex; align-items: center; justify-content: center; }
.tut-face .cat { width: 34px; height: 34px; }
.tut-bubble p { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.tut-skip { flex: none; align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: #f7ece7; color: var(--ink-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tut-skip[hidden] { display: none; }
.tut-resume { align-self: center; margin: -4px 0 8px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--ink-soft); font-size: 12px; font-weight: 700; }

#tutLayer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 8; pointer-events: none; }
#tutLayer > div { position: absolute; pointer-events: none; }
.tut-unit { background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95); }
.tut-no { background: repeating-linear-gradient(45deg, rgba(239, 91, 107, .30) 0 5px, rgba(239, 91, 107, .12) 5px 10px); }
.tut-ring { border-radius: 12px; box-shadow: inset 0 0 0 3.5px #ffab1a, inset 0 0 0 6px rgba(255, 255, 255, .9), 0 0 14px 2px rgba(255, 190, 59, .85); }
.tut-ring.tut-round { border-radius: 18px; box-shadow: 0 0 0 3.5px #ffab1a, 0 0 0 6.5px rgba(255, 255, 255, .9), 0 0 16px 6px rgba(255, 190, 59, .8); }
.tut-hand svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgba(75, 44, 63, .28)); transform: rotate(-18deg); transform-origin: 46% 0; }
.tut-hand path { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.tut-hand.tut-flip svg { transform: rotate(198deg); transform-origin: 46% 50%; }

.tut-anim .tut-ring { animation: tut-glow 1.1s ease-in-out infinite; }
.tut-anim .tut-hand { animation: tut-tap 1.1s ease-in-out infinite; }
.tut-anim .tut-hand.tut-flip { animation-name: tut-tap-up; }
@keyframes tut-glow { 50% { opacity: .55; } }
@keyframes tut-tap { 0%, 100% { transform: translate(7px, 12px); } 45%, 60% { transform: translate(0, 0); } }
@keyframes tut-tap-up { 0%, 100% { transform: translate(7px, -12px); } 45%, 60% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .tut-anim .tut-ring, .tut-anim .tut-hand { animation: none; } }
