/* Shared practice primitives. Modes reuse these; theme variables only.
   Progress bar: <div class="p-bar" style="--v:40%"><i></i></div> */
.p-card { max-width: 720px; margin: 20px auto; padding: 28px clamp(16px, 4vw, 40px); text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.p-card h1, .p-card h2 { margin-top: 0; }
.p-card p { white-space: pre-line; }

.p-opts { display: grid; gap: 10px; margin: 18px 0; text-align: left; }
.p-opt { display: block; width: 100%; min-height: 44px; text-align: left; padding: 11px 16px; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14.5px; line-height: 1.5; }
.p-opt:hover:not(:disabled) { border-color: var(--accent); }
.p-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-opt:disabled { cursor: default; }
.p-opt.correct { border-color: #2b9a66; background: color-mix(in srgb, #2b9a66 16%, var(--panel)); }
.p-opt.wrong { border-color: #d6336c; background: color-mix(in srgb, #d6336c 14%, var(--panel)); }

.p-bar { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.p-bar > * { display: block; height: 100%; width: var(--v, 0%); background: var(--accent); border-radius: 99px; transition: width .25s; }

/* circular countdown: set --p (0..1 remaining) and put the number inside */
.p-ring { --p: 1; --size: 96px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; margin: 12px auto; font: 600 22px var(--mono);
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--line) 0); position: relative; }
.p-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel); }
.p-ring > * { position: relative; }

.p-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.p-row .btn { min-height: 40px; }

.p-summary { max-width: 720px; margin: 20px auto; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.p-summary .big { font: 700 44px/1.1 var(--sans); color: var(--accent); }
