/* Practice (learning method) lesson. All rules scoped under .prc-* */

.prc-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prc-hero { width: min(88%, 340px); }
.prc-hero img { width: 100%; display: block; }

/* the board */
.prc-wrap { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prc-board { width: min(100%, 290px); touch-action: manipulation; cursor: crosshair; }
.prc-svg { width: 100%; display: block; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.prc-off .prc-svg { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)) saturate(.7); }
.prc-dart circle:first-child { stroke: #15100A; stroke-width: 1.5; }
.prc-lit circle:first-child { fill: var(--gold); }
.prc-dark circle:first-child { fill: #B9B4C8; }
.prc-tip { fill: #15100A; }
.prc-new { animation: prc-thunk .25s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes prc-thunk { from { transform: scale(2.2); opacity: 0; } to { transform: none; opacity: 1; } }
.prc-hidden { opacity: 0; transition: opacity .5s; }
.prc-hidden.prc-show { opacity: 1; }
.prc-hidden.prc-ghost { opacity: 0; }
.prc-both .prc-hidden { opacity: 1; }
.prc-tally { display: flex; gap: 8px; }
.prc-tally i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 17px var(--mono); font-style: normal; background: var(--raised); border: 1.5px dashed var(--line-strong); color: var(--dim); }
.prc-tally i.prc-q { border-style: solid; color: var(--dim); }
.prc-tally i.prc-s5, .prc-tally i.prc-s4 { border: 1.5px solid var(--mint); color: var(--mint); background: rgba(63, 214, 154, .12); }
.prc-tally i.prc-s3 { border: 1.5px solid var(--gold); color: var(--gold); }
.prc-tally i.prc-s2, .prc-tally i.prc-s1, .prc-tally i.prc-s0 { border: 1.5px solid var(--line-strong); color: var(--text); }

/* deliberate practice */
.prc-parts { width: 100%; max-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prc-parts div { border-radius: 12px; background: var(--raised); border: 1px solid var(--line); padding: 10px; opacity: .25; transform: translateY(6px); transition: opacity .3s, transform .3s, border-color .3s; }
.prc-parts div.prc-in { opacity: 1; transform: none; border-color: var(--violet); }
.prc-parts b { display: block; font: 700 14px/1.25 var(--sans); }
.prc-parts span { display: block; font: 500 13px var(--sans); color: var(--dim); margin-top: 3px; }

/* hours */
.prc-big { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 300px; }
.prc-big b { font: 700 56px var(--serif); color: var(--gold); line-height: 1; }
.prc-big span { font: 600 15px var(--sans); }
.prc-big small { font-size: 12px; color: var(--faint); margin-top: 6px; }
.prc-dom { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 9px; }
.prc-row { display: grid; grid-template-columns: 58px 1fr 64px; align-items: center; gap: 8px; }
.prc-row span { font: 700 13px var(--sans); }
.prc-row div { height: 14px; border-radius: 7px; background: var(--raised); overflow: hidden; }
.prc-row i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.prc-row:first-child i { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.prc-row b { font: 700 13px var(--mono); text-align: right; }
.prc-dom small { font-size: 12px; color: var(--faint); text-align: center; }

/* free throws */
.prc-who.prc-win { border-color: var(--mint); background: rgba(63, 214, 154, .1); }
.prc-three { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.prc-who { display: flex; gap: 12px; align-items: center; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); padding: 10px 12px; }
.prc-who b { font: 700 17px var(--serif); min-width: 36px; }
.prc-who span { font: 500 14px/1.3 var(--sans); }

@media (max-height: 700px) {
  .prc-board { width: min(100%, 220px); }
  .prc-tally i { width: 34px; height: 34px; font-size: 15px; }
  .prc-big b { font-size: 46px; }
}
