/* Slingshot practice: a panel between the top bar and the far end of the table (never over Pudding). */
#practice {
  position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top)); transform: translateX(-50%);
  transform-origin: 50% 0;
  z-index: 6; width: min(94%, 430px); --panel-w: 18px; pointer-events: none; color: var(--ink);
  animation: pracIn 0.32s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pracIn { 0% { opacity: 0; transform: translateX(-50%) scale(0.85); } 100% { opacity: 1; transform: translateX(-50%); } }
#practice > .in { margin: -6px -2px; display: flex; flex-direction: column; gap: 6px; }
.prac-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#prac-title { font-size: 15px; color: var(--pink-d); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 6px; flex: 0 0 auto; }
.chip { font-size: 14px; line-height: 18px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.85);
  border: 2px solid #ffd2e4; color: #c9a3b6; white-space: nowrap; }
.chip.done { background: #7fdcb9; border-color: #4fae8b; color: #fff; text-shadow: 0 1px 0 #3f8f72; animation: chipPop 0.4s cubic-bezier(.2,1.8,.4,1); }
@keyframes chipPop { 0% { transform: scale(0.5); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
#prac-step { font-size: 17px; line-height: 1.35; text-align: center; min-height: 23px; color: #d0477e; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.95); }
#prac-step.pop { animation: stepPop 0.35s cubic-bezier(.2,1.6,.4,1); }
@keyframes stepPop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.meter-row { display: flex; align-items: center; gap: 8px; }
#meter-lbl { font-size: 13px; color: var(--pink-d); white-space: nowrap; }
.meter { position: relative; flex: 1 1 auto; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 3px rgba(138, 58, 99, 0.25), 0 0 0 2px #ffd2e4; overflow: hidden; }
.meter-zones, #meter-fill { position: absolute; inset: 0; }
.meter-zones { opacity: 0.3; }
#meter-fill { clip-path: inset(0 100% 0 0); }
.meter .tick { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: rgba(255, 255, 255, 0.95); }
#meter-tier { min-width: 52px; font-size: 22px; text-align: center; white-space: nowrap;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 3px 0 rgba(138, 58, 99, 0.35); }
#meter-tier.soft { --ink: #3f9c7a; }
#meter-tier.medium { --ink: #c98a1a; }
#meter-tier.strong { --ink: #d0477e; }
#meter-tier.pop { animation: stepPop 0.25s cubic-bezier(.2,1.8,.4,1); }
#prac-tip { font-size: 14px; line-height: 1.3; text-align: center; color: var(--ink); font-weight: 700; }
#prac-key { font-size: 12px; line-height: 1.3; text-align: center; color: var(--pink-d); font-weight: 700; }
#prac-skip { position: fixed; left: calc(10px + env(safe-area-inset-left)); top: calc(8px + env(safe-area-inset-top)); z-index: 7;
  min-width: 92px; min-height: 48px; --btn-w: 18px; padding: 0 12px; line-height: 14px; font-size: 16px; }

/* The intro's Skip button: bottom centre (the intro has no subtitles). While the intro is up, the title's start
   prompt and corner buttons under it step aside (the player already tapped to start). */
#intro-skip { top: auto; right: 0; left: 0; bottom: calc(28px + env(safe-area-inset-bottom)); margin: 0 auto; width: max-content; }
body:has(#intro:not(.hidden)) #title-start,
body:has(#intro:not(.hidden)) #title .corner-btn { visibility: hidden; }
