/* Procrastination lesson. All rules scoped under .pcn-* */

.pcn-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pcn-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.pcn-hero img { display: block; width: 260px; max-width: 100%; max-height: 32vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123,92,253,.3)); }
.pcn-hero.wide img { width: 300px; }
.pcn-hero.art img { width: 230px; }

/* the chore: a sheet of digits */
.pcn-sheet { display: grid; grid-template-columns: repeat(6, 44px); gap: 5px; padding: 12px; border-radius: 14px; background: #EFE9DC; box-shadow: 0 10px 24px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.pcn-d { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; font: 600 22px var(--mono); color: #2A2620; padding: 0; }
.pcn-sheet:not(.live) { transform: rotate(-2deg) scale(.86); opacity: .95; }
.pcn-sheet.live .pcn-d { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pcn-d.got { background: var(--mint); color: var(--mint-ink); }
.pcn-sheet.done { box-shadow: 0 0 0 3px var(--mint), 0 10px 24px rgba(0,0,0,.35); }

/* trays: done and waiting */
.pcn-trays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 320px; }
.pcn-tray { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 16px; background: var(--raised); border: 1.5px solid var(--line); }
.pcn-tray.end { border-style: dashed; border-color: var(--gold); }
.pcn-tray > span { font: 700 13px var(--sans); color: var(--dim); text-align: center; }
.pcn-pgs { display: flex; gap: 6px; min-height: 58px; align-items: center; }
.pcn-pgs small { font-size: 13px; color: var(--faint); }
.pcn-pg { display: block; width: 40px; height: 52px; border-radius: 5px; background: #EFE9DC; box-shadow: 0 4px 10px rgba(0,0,0,.3); position: relative; }
.pcn-pg::after { content: ''; position: absolute; left: 7px; right: 7px; top: 10px; height: 26px; background: repeating-linear-gradient(#B9B2A4 0 3px, transparent 3px 8px); }
.pcn-pg.ok { outline: 3px solid var(--mint); }

/* Pronin: three cups */
.pcn-cups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 330px; }
.pcn-cup { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pcn-glass { position: relative; width: 62px; height: 104px; border: 3px solid var(--line-strong); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.pcn-glass i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #A2482C, #6B2A18); }
.pcn-cup b { font: 700 16px var(--mono); color: var(--gold); min-height: 20px; }
.pcn-cup span { font-size: 13px; font-weight: 700; color: var(--dim); line-height: 1.2; }

/* the machine */
.pcn-mach { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pcn-mn { font: 700 14px var(--sans); color: var(--text); text-align: center; max-width: 150px; line-height: 1.2; min-height: 34px; display: flex; align-items: flex-end; }
.pcn-mb { display: flex; gap: 12px; align-items: stretch; }
.pcn-meter { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pcn-meter > span { font: 700 12px var(--sans); color: var(--dim); }
.pcn-mt { position: relative; width: 26px; height: 150px; border-radius: 13px; background: linear-gradient(180deg, rgba(63,214,154,.55), rgba(255,255,255,.06) 50%, rgba(216,85,85,.55)); border: 1.5px solid var(--line-strong); }
.pcn-mt .mid { position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: var(--line-strong); }
.pcn-mt .dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg); transition: background .2s; }
.pcn-mt .dot.bad { background: var(--red); }
.pcn-mt .dot.good { background: var(--mint); }
.pcn-mt em { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; font: 700 12px var(--sans); font-style: normal; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.pcn-mt .lock { background: var(--violet-bright); color: #1A1440; }
.pcn-mt .guilt { top: auto; bottom: -30px; background: var(--red); color: #fff; }
.pcn-mach.locked .lock, .pcn-mach.guilty .guilt { opacity: 1; }
.pcn-mach.locked .pcn-mt { border-color: var(--violet-bright); }
.pcn-mc { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.pcn-slot { position: relative; width: 92px; height: 84px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--raised); display: flex; align-items: center; justify-content: center; }
.pcn-slot.later { border-style: dashed; }
.pcn-slot > span { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 700 12px var(--sans); color: var(--dim); }
.pcn-chore { position: absolute; top: 10px; left: 50%; width: 42px; height: 50px; margin-left: -21px; border-radius: 5px; background: #EFE9DC; display: flex; flex-direction: column; gap: 5px; padding: 10px 7px; box-shadow: 0 4px 10px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s; z-index: 1; }
.pcn-chore i { display: block; height: 3px; background: #B9B2A4; border-radius: 2px; }
.pcn-chore.hot { box-shadow: 0 0 0 3px var(--red), 0 4px 10px rgba(0,0,0,.35); }
.pcn-chore.off { transform: translateY(94px); }
.pcn-mach.missed .pcn-chore { box-shadow: 0 0 0 3px var(--red), 0 4px 10px rgba(0,0,0,.35); }
.pcn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; justify-items: center; }
.pcn-two .pcn-slot { width: 64px; height: 70px; }
.pcn-two .pcn-chore { top: 7px; width: 34px; height: 42px; margin-left: -17px; padding: 8px 6px; gap: 4px; }
.pcn-two .pcn-chore.off { transform: translateY(80px); }
.pcn-two .pcn-mt { height: 130px; }

/* Tice: two bars */
.pcn-bars { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 8px; }
.pcn-br { display: flex; flex-direction: column; gap: 4px; }
.pcn-br span { font-size: 13px; font-weight: 700; color: var(--dim); }
.pcn-bt { height: 14px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.pcn-bt i { display: block; height: 100%; width: 0; border-radius: 7px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.pcn-bt i.a { background: var(--gold); }
.pcn-bt i.b { background: var(--violet-bright); }
.pcn-bars.on .pcn-bt i.a { width: 88%; }
.pcn-bars.on .pcn-bt i.b { width: 30%; }
.pcn-bx { font-size: 12px; color: var(--faint); }

/* the loop */
.pcn-loop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; max-width: 340px; }
.pcn-loop > i { font-style: normal; color: var(--faint); }
.pcn-st { padding: 10px 12px; border-radius: 12px; background: var(--raised); border: 1.5px solid var(--line); font: 700 15px var(--sans); color: var(--text); opacity: .25; transition: opacity .3s; }
.pcn-st.in { opacity: 1; }
.pcn-st.good.in { border-color: var(--mint); color: var(--mint); }
.pcn-st.bad.in { border-color: var(--red); color: var(--red); }

/* the term chart */
.pcn-ch { display: block; overflow: visible; }
.pcn-ch.big { width: 300px; max-width: 100%; }
.pcn-ch .ax { stroke: var(--line-strong); stroke-width: 1.5; }
.pcn-ch .oth { stroke: var(--dim); stroke-width: 3; stroke-dasharray: 6 5; fill: none; }
.pcn-ch .pro { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; fill: none; }
.pcn-ch .pro.draw { stroke-dasharray: 320; stroke-dashoffset: 320; animation: pcn-draw .9s ease-out forwards; }
@keyframes pcn-draw { to { stroke-dashoffset: 0; } }
.pcn-ch text { font: 700 12px var(--sans); fill: var(--dim); }
.pcn-leg { display: flex; gap: 16px; font: 700 13px var(--sans); color: var(--dim); }
.pcn-leg span::before { content: ''; display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 3px dashed var(--dim); }
.pcn-leg .p::before { border-top: 4px solid var(--gold); }
.choices.pcn-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pcn-charts .choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; }
.pcn-oc { width: 100%; }
.pcn-oc svg { width: 100%; height: auto; }

.pcn-mach.mini .pcn-mt { height: 110px; }
.pcn-mach.mini .pcn-slot { height: 64px; }
.pcn-mach.mini .pcn-chore { top: 6px; }
.pcn-mach.mini .pcn-chore.off { transform: translateY(74px); }

@media (max-height: 700px) {
  .pcn-hero img { max-height: 26vh; }
  .pcn-glass { height: 86px; }
  .pcn-sheet { grid-template-columns: repeat(6, 44px); gap: 3px; padding: 8px; }
  .pcn-mt { height: 120px; }
  .pcn-two .pcn-mt { height: 110px; }
  .pcn-slot { height: 70px; }
  .pcn-chore.off { transform: translateY(80px); }
}
