/* The toy in this note. Loaded on this page only, after styles.css and notes.css.
   Same rules as everywhere: only opacity and transform move, and anything marked
   .lp loops only while the toy is on screen. */

/* the scores: 74, a worse fix at 67, a rescue at 91 (10 s) */
.score { --tint: var(--a2) }
.sc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; text-align: center }
.sc-col { position: relative; display: grid; justify-items: center; gap: 4px }
.sc-bar { position: relative; width: 100%; max-width: 72px; height: 130px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden }
.sc-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--muted); transform-origin: bottom; transform: scaleY(var(--v)); animation: 10s var(--ease) infinite both }
.sc-col.good .sc-bar i { background: var(--rainbow) }
.sc-col.bad .sc-bar i { background: #E5866A }
.sc-col b { margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em }
.sc-col .mono { font-size: 10px }
.sc-tag { position: absolute; top: 8px; padding: 3px 8px; border-radius: 999px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: var(--raise); box-shadow: 0 0 0 1px var(--line-2); animation: 10s ease infinite both }
.sc-col.bad .sc-tag { color: #E5866A }
.sc-col.good .sc-tag { color: var(--ink-accent) }
.sc-col.bad .sc-bar, .sc-col.bad > b { animation: sc-dim 10s ease infinite both }
.sc-bar .s1 { animation-name: sc-s1 }
@keyframes sc-s1 { 0%, 2% { transform: scaleY(0) } 12%, 90% { transform: scaleY(var(--v)) } 97%, 100% { transform: scaleY(0) } }
.sc-bar .s2 { animation-name: sc-s2 }
@keyframes sc-s2 { 0%, 16% { transform: scaleY(0) } 26%, 90% { transform: scaleY(var(--v)) } 97%, 100% { transform: scaleY(0) } }
.sc-bar .s3 { animation-name: sc-s3 }
@keyframes sc-s3 { 0%, 42% { transform: scaleY(0) } 52%, 90% { transform: scaleY(var(--v)) } 97%, 100% { transform: scaleY(0) } }
.sc-tag.t2 { animation-name: sc-t2 }
@keyframes sc-t2 { 0%, 30% { opacity: 0; transform: translateY(-6px) scale(.8) } 34%, 90% { opacity: 1; transform: none } 95%, 100% { opacity: 0 } }
.sc-tag.t3 { animation-name: sc-t3 }
@keyframes sc-t3 { 0%, 56% { opacity: 0; transform: translateY(-6px) scale(.8) } 60%, 90% { opacity: 1; transform: none } 95%, 100% { opacity: 0 } }
@keyframes sc-dim { 0%, 32% { opacity: 1 } 38%, 90% { opacity: .45 } 96%, 100% { opacity: 1 } }
.score .sc-col.bad .sc-bar, .score .sc-col.bad > b { animation-play-state: paused } .score.play .sc-col.bad .sc-bar, .score.play .sc-col.bad > b, html:not(.js) .score .sc-col.bad .sc-bar { animation-play-state: running }
