/* CCN Casual Games · Clown Run · © Computational Classnotes · CC BY-NC-SA 4.0 */
#stage-wrap { position: relative; max-width: 560px; margin: 10px 0; }
#scene { width: 100%; aspect-ratio: 3 / 4; height: auto; display: block; border-radius: 12px; border: 3px solid var(--ink); background: #ffe9d2; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hud { gap: 8px; } .hud h2 { margin-right: auto; } .score { font: 700 2rem var(--head); }
#note { position: absolute; top: 14px; left: 0; right: 0; text-align: center; margin: 0; font: 700 1.3rem var(--head); color: #fff; text-shadow: 0 1px 6px rgba(90, 30, 60, 0.7); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
#note.show { opacity: 1; transition: none; }
#stick { position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); background: rgba(23, 32, 43, 0.18); pointer-events: none; }
#stick::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(250, 143, 43, 0.9); transform: translate(var(--kx, 0px), var(--ky, 0px)); }
/* the Jump button, over the game at the bottom right, for the thumb; it fills up again during the wait after a jump */
.cr-jump { position: absolute; right: 14px; bottom: 14px; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; z-index: 5;
  background: conic-gradient(rgba(23, 32, 43, 0.65) calc(var(--wait, 0) * 360deg), #ff7a00 0); color: #fff; font: 800 1.05rem var(--head);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.cr-jump:active { transform: scale(0.94); }
.cr-jump.waiting { opacity: 0.85; }

