/* ═══════════════════════════════════════
   WoGL — World of GL
   wogl.io | worldofgl.com | mundogl.com
   hello@wogl.io | hola@mundogl.com

   Proprietary. All rights reserved.
   ═══════════════════════════════════════ */

/* Practice (practice.js): the classroom's chrome and sandbox (clase.css) around a prompt, its goal running, the
   hints and the solution. Each ingredient keeps the museum's color: material gold, force lilac, light mint, shape
   coral, shader gold. */
.practice-page { --pr-material: #e8c89a; --pr-force: #c89be8; --pr-light: #8be8c0; --pr-shape: #e89b8b; --pr-shader: #e8c89a; }
.practice { padding-top: clamp(28px, 5vh, 56px); }
.practice > * { max-width: 1040px; }

.pr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); align-items: center; gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(28px, 5vh, 56px); }
.pr-kicker { color: var(--gold); }
.pr-prompt { margin-top: 14px; font: 300 clamp(38px, 5.4vw, 76px)/1.02 var(--sans); letter-spacing: -.03em; color: var(--cream); text-wrap: balance; }
.pr-w { white-space: nowrap; }
.pr-w.is-material, .pr-w.is-shader { color: var(--pr-material); }
.pr-w.is-force { color: var(--pr-force); }
.pr-w.is-light { color: var(--pr-light); }
.pr-w.is-shape { color: var(--pr-shape); }
.pr-task { font-size: .52em; vertical-align: .32em; letter-spacing: .02em; color: var(--muted); }
.pr-punch { margin-top: 16px; font-size: 17px; color: var(--muted); }
.pr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pr-tag { padding: 7px 12px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.pr-tag.is-material, .pr-tag.is-shader { color: var(--pr-material); }
.pr-tag.is-force { color: var(--pr-force); }
.pr-tag.is-light { color: var(--pr-light); }
.pr-tag.is-shape { color: var(--pr-shape); }

.pr-goal { position: relative; margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.pr-goal canvas { display: block; width: 100%; height: 100%; }
.pr-goal figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 999px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(5, 5, 8, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* the hints and the back of the book */
.pr-hints { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: clamp(28px, 5vh, 48px); }
.pr-drawer { min-width: 0; border-radius: 16px; background: rgba(255, 250, 242, .03); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
.pr-drawer[open] { background: rgba(255, 250, 242, .05); }
.pr-drawer summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 16px; color: var(--cream); }
.pr-drawer summary::-webkit-details-marker { display: none; }
.pr-drawer summary span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 500 11px/1 var(--mono); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); }
.pr-drawer summary::after { content: '+'; margin-left: auto; font: 300 22px/1 var(--sans); color: var(--quiet); transition: transform .3s var(--ease); }
.pr-drawer[open] summary::after { transform: rotate(45deg); }
.pr-body { padding: 0 18px 18px 62px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.pr-body strong { color: var(--cream); font-weight: 500; }
.pr-body code { font: 13px var(--mono); color: var(--gold); overflow-wrap: anywhere; }
.pr-from { font: 500 11px/1 var(--mono); color: var(--quiet); }
.pr-sol { max-width: 100%; max-height: 360px; overflow: auto; margin-bottom: 14px; padding: 16px; border-radius: 12px; font: 13px/1.6 var(--mono); color: var(--cream); background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); white-space: pre; }

/* moving on */
.pr-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(32px, 6vh, 56px); }
.pr-nav [aria-disabled] { opacity: .45; cursor: not-allowed; }
.pr-locked { margin-top: 14px; text-align: center; font-size: 14px; color: var(--quiet); }
.pr-locked.nudge { animation: pr-nudge .5s var(--ease); color: var(--gold); }
@keyframes pr-nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.pr-pro { margin-top: clamp(40px, 8vh, 72px); text-align: center; font-size: 14px; }
.pr-pro a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.pr-pro a:hover { color: var(--gold); border-color: var(--gold); }

/* all of them, in the drawer */
.pr-ix-title { padding: var(--s5) var(--gutter) 0; font: 300 clamp(28px, 4vw, 40px)/1 var(--sans); color: var(--cream); }
.pr-ix { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.pr-ix-mode { padding: var(--s4) var(--gutter) 0; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pr-ix-mode small { color: var(--quiet); }
.pr-ix-h { padding: var(--s3) var(--gutter) 0; font: 400 15px/1.3 var(--sans); color: var(--cream); }
.pr-ix .index-list { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 760px) {
  .pr-hero { grid-template-columns: minmax(0, 1fr); }
  .pr-goal { width: min(100%, 360px); justify-self: center; }
  .pr-body { padding-left: 18px; }
  .pr-sol { font-size: 12px; }
  .pr-ix { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pr-locked.nudge { animation: none; } }
.practice-page .tabs-lessons { display: inline-flex; margin-left: auto; }
