.tut { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 180ms ease-out, visibility 0s 180ms; font-family: var(--f-font); }
.tut.on { opacity: 1; visibility: visible; transition: opacity 180ms ease-out; }
body.mode-replay .tut { z-index: 31; }
.tut-dim { position: absolute; inset: 0; width: 100%; height: 100%; }
.tut-hand { position: absolute; left: 0; top: 0; width: calc(64px * var(--ui-k)); height: calc(64px * var(--ui-k)); transform-origin: 50% 50%; will-change: transform; }
.tut-hand[hidden] { display: none; }
.tut-hand svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: tutTap 0.9s ease-in-out infinite; transform-origin: 47% 10%; filter: drop-shadow(0 calc(3px * var(--ui-k)) 0 rgba(0, 0, 0, 0.35)); }
.tut-hand path { fill: #fff; stroke: var(--f-ink); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.tut-hand path.ln { fill: none; stroke-width: 2; }
.tut-ring { position: absolute; left: 47%; top: 10%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; border: calc(3px * var(--ui-k)) solid var(--f-yellow); animation: tutRing 0.9s ease-out infinite; }
.tut-hand.nudge svg { animation: tutNudge 0.35s ease-in-out 2, tutTap 0.9s ease-in-out 0.7s infinite; }
@keyframes tutTap { 0%, 100% { transform: translateY(10%) scale(1); } 45% { transform: translateY(0) scale(0.92); } }
@keyframes tutRing { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes tutNudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-12%) rotate(-8deg); } 70% { transform: translateX(12%) rotate(8deg); } }
.tut-plate { position: absolute; left: 0; top: 0; box-sizing: border-box; width: max-content; max-width: min(max(calc(520px * var(--ui-k)), 34vw), calc(100vw - 2 * var(--edge) - var(--sa-l) - var(--sa-r))); display: flex; flex-direction: column; gap: calc(6px * var(--ui-k)); padding: calc(10px * var(--ui-k)) calc(16px * var(--ui-k)) calc(10px * var(--ui-k)) calc(20px * var(--ui-k)); white-space: normal; overflow-wrap: break-word; border-radius: calc(8px * var(--ui-k)); color: #fff; background: linear-gradient(135deg, rgba(10, 40, 130, 0.97), rgba(22, 100, 220, 0.95)); box-shadow: inset calc(5px * var(--ui-k)) 0 0 var(--f-yellow), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 calc(12px * var(--ui-k)) calc(30px * var(--ui-k)) rgba(0, 0, 0, 0.4); pointer-events: auto; }
.tut.play .tut-plate { max-width: min(max(calc(560px * var(--ui-k)), 40vw), 62vw); }
.tut-plate.pop { animation: tutPop 240ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.tut-plate.shake { animation: tutShake 0.3s ease-in-out; }
@keyframes tutPop { from { scale: 0.8; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes tutShake { 0%, 100% { translate: 0 0; } 25% { translate: calc(-6px * var(--ui-k)) 0; } 75% { translate: calc(6px * var(--ui-k)) 0; } }
.tut-text { display: block; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(calc(16px * var(--ui-kf)), calc(19 * var(--u)), calc(30px * var(--ui-kf))); line-height: 1.08; letter-spacing: 0.01em; text-shadow: 0 calc(2px * var(--ui-k)) 0 rgba(0, 0, 0, 0.25); }
.tut-sub { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(calc(12px * var(--ui-kf)), calc(13 * var(--u)), calc(19px * var(--ui-kf))); color: var(--f-yellow); }
.tut-sub[hidden] { display: none; }
.tut-meter { position: relative; align-self: stretch; min-width: min(calc(240px * var(--ui-k)), 50vw); height: clamp(calc(18px * var(--ui-k)), calc(18 * var(--u)), calc(26px * var(--ui-k))); border-radius: calc(4px * var(--ui-k)); background: rgba(0, 0, 20, 0.55); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(255, 255, 255, 0.35); overflow: hidden; }
.tut-meter[hidden] { display: none; }
.tut-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffb31a, var(--f-yellow)); transition: width 120ms linear; }
.tut-meter.full i { background: linear-gradient(90deg, #3fc75a, #7dff8f); }
.tut-meter span { position: relative; display: block; text-align: center; line-height: clamp(calc(18px * var(--ui-kf)), calc(18 * var(--u)), calc(26px * var(--ui-kf))); font-weight: 700; text-transform: uppercase; font-size: max(calc(12 * var(--u)), calc(11px * var(--ui-kf))); color: #fff; text-shadow: 0 1px calc(2px * var(--ui-k)) rgba(0, 0, 0, 0.7); }
.tut-btns { display: flex; justify-content: flex-end; gap: calc(8px * var(--ui-k)); flex-wrap: wrap; margin-top: calc(2px * var(--ui-k)); }
.tut-btns[hidden] { display: none; }
.tut-btns .f-btn { min-height: max(calc(40px * var(--ui-k)), calc(40 * var(--u))); }
.tut-skipbtn { position: absolute; right: calc(var(--sa-r) + var(--edge)); top: calc(var(--sa-t) + var(--edge) + max(calc(52px * var(--ui-k)), calc(56 * var(--u)))); min-height: max(calc(36px * var(--ui-k)), calc(36 * var(--u))); padding: 0 calc(14px * var(--ui-k)); pointer-events: auto; font-size: max(calc(14 * var(--u)), calc(13px * var(--ui-kf))); }
.tut-skipbtn[hidden] { display: none; }
.tut-cue { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(calc(30px * var(--ui-kf)), calc(44 * var(--u)), calc(72px * var(--ui-kf))); color: var(--f-yellow); text-shadow: 0 calc(4px * var(--ui-k)) 0 rgba(0, 0, 0, 0.45), 0 0 calc(24px * var(--ui-k)) rgba(255, 210, 40, 0.5); white-space: nowrap; opacity: 0; pointer-events: none; }
.tut-cue.good { color: #7dff8f; text-shadow: 0 calc(4px * var(--ui-k)) 0 rgba(0, 0, 0, 0.45), 0 0 calc(24px * var(--ui-k)) rgba(80, 255, 120, 0.45); }
.tut-cue.bad { color: #ffd0d4; font-size: max(calc(30 * var(--u)), calc(22px * var(--ui-kf))); }
.tut-cue.go { animation: tutCue 1.1s ease-out; }
@keyframes tutCue { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 30% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1); } }
.tl-off { display: none !important; }
.tl-hide { visibility: hidden !important; pointer-events: none !important; }
#hud .tl-dim { opacity: 0.32 !important; filter: grayscale(0.6); }
.tl-lock { position: relative; opacity: 0.6; filter: grayscale(1); }
.tl-lock::after { content: '🔒 ' attr(data-lv); display: inline-block; margin-left: calc(6px * var(--ui-k)); padding: 1px calc(6px * var(--ui-k)); border-radius: calc(4px * var(--ui-k)); background: rgba(4, 10, 36, 0.85); color: #fff; font-family: var(--f-font); font-style: normal; font-weight: 700; font-size: calc(11px * var(--ui-kf)); line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; pointer-events: none; }
.tl-lock .nb { display: none !important; }
body.ftue .hud-tr > *:not(#btn-sound):not([data-tap="respawn"]) { display: none !important; }
body.ftue #height-pair { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tut-hand svg, .tut-ring { animation: none; } }
.lico.tl-lock::after, .lcur.tl-lock::after, .lme.tl-lock::after { position: absolute; left: 50%; bottom: calc(-4px * var(--ui-k)); transform: translate(-50%, 50%); margin: 0; }
.nk-over { z-index: 30; }
.nk-ask { width: min(calc(100vw - 2 * var(--edge) - var(--sa-l) - var(--sa-r)), max(calc(480px * var(--ui-k)), calc(540 * var(--u)))); }
.nk-ask .pnl-body { display: flex; flex-direction: column; gap: calc(8px * var(--ui-k)); }
.nk-ask .nk-in { flex: none; width: 100%; box-sizing: border-box; font-size: max(calc(22 * var(--u)), calc(18px * var(--ui-kf))); font-weight: 700; }
.nk-ask .nk-note { color: var(--f-dim); font-size: max(calc(14 * var(--u)), calc(12px * var(--ui-kf))); line-height: 1.2; }
.nk-ask .nk-note.err { color: #ff8a8a; }
.nk-ask .pnl-foot { display: flex; gap: calc(10px * var(--ui-k)); }
.nk-ask .pnl-foot .f-btn { flex: 1 1 auto; min-width: 0; padding-left: calc(10px * var(--ui-k)); padding-right: calc(10px * var(--ui-k)); }
.nk-ask .pnl-foot .f-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 520px) {
  .nk-over { place-items: start center; padding-top: max(calc(8px * var(--ui-k)), var(--sa-t, 0px)); }
  .nk-ask .pnl-head { padding-top: calc(8px * var(--ui-k)); padding-bottom: calc(6px * var(--ui-k)); }
  .nk-ask .pnl-head h2 { font-size: calc(22px * var(--ui-kf)); }
  .nk-ask .pnl-body { padding-top: calc(6px * var(--ui-k)); padding-bottom: calc(8px * var(--ui-k)); }
}
.nk-ask .pnl-foot [data-ok] { min-width: 34%; }
