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

.pcn-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }

/* Tuesday night: the two pictures cross-fade, the meter under them */
.pcn-due { align-self: center; font: 700 13px var(--sans); color: #1b1300; background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.pcn-pic { position: relative; width: 100%; height: 30vh; max-height: 250px; }
.pcn-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; filter: drop-shadow(0 14px 24px rgba(123, 92, 253, .28)); }
.pcn-pic .pcn-b { opacity: 0; }
.pcn-pic.pcn-relief .pcn-a { opacity: 0; }
.pcn-pic.pcn-relief .pcn-b { opacity: 1; }
.pcn-pic.pcn-one { height: 34vh; max-height: 280px; }
.pcn-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--dim); }
.pcn-meter b { font: 800 14px var(--sans); color: var(--text); min-width: 52px; text-align: right; }
.pcn-mt { height: 14px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.pcn-mt i { display: block; height: 100%; width: 6%; border-radius: 999px; }
.pcn-cup.pcn-hide { opacity: 0; }
.pcn-cup { transition: opacity .3s; }

/* the week */
.pcn-key { display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; color: var(--dim); }
.pcn-key span { display: inline-flex; align-items: center; gap: 7px; }
.pcn-kb { display: block; width: 24px; height: 12px; border-radius: 3px; border: 2px dashed var(--line-strong); }
.pcn-kbar { display: block; width: 10px; height: 18px; border-radius: 3px; background: linear-gradient(to top, hsl(90 72% 58%), hsl(10 72% 58%)); }
.pcn-wk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pcn-col { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 2px 7px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); transition: border-color .25s, background .25s; }
.pcn-col.pcn-on, .pcn-fri.pcn-on.pcn-clear { border-color: var(--violet-bright); background: rgba(123, 92, 253, .12); }
.pcn-fri.pcn-on { border-color: var(--red); background: rgba(216, 85, 85, .1); }
.pcn-dn { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pcn-fri .pcn-dn { color: #F07A7E; }
.pcn-hrs { height: 64px; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.pcn-blk { --f: 0; display: block; flex: none; width: 42px; height: 17px; border-radius: 4px; border: 2px dashed var(--line-strong); background: linear-gradient(90deg, var(--gold) calc(var(--f) * 100%), transparent 0); }
.pcn-blk.pcn-work, .pcn-blk.pcn-done { border-style: solid; border-color: var(--gold); }
.pcn-blk.pcn-fly { position: relative; z-index: 3; border: 2px solid var(--red); background: rgba(216, 85, 85, .3); }
.pcn-blk.pcn-gone { opacity: .3; }
.pcn-blk.pcn-due { border: 2px solid var(--red); background: rgba(216, 85, 85, .3); }
.pcn-blk.pcn-hit { background: var(--red); animation: pcnHit .35s ease-out both; }
@keyframes pcnHit { 40% { transform: scale(1.18); } }
.pcn-bar { width: 24px; height: 88px; border-radius: 8px; background: var(--raised); display: flex; align-items: flex-end; overflow: hidden; }
.pcn-bar i { display: block; width: 100%; height: 0; border-radius: 8px; }
.pcn-mw { font-style: normal; font-size: 13px; font-weight: 800; min-height: 17px; color: var(--text); }

/* a frozen mood */
.pcn-grps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcn-grp { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 10px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); text-align: center; }
.pcn-grp b { font-size: 15px; line-height: 1.25; min-height: 38px; display: flex; align-items: center; }
.pcn-who { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 46px; width: 100%; }
.pcn-face { width: 44px; height: 44px; }
.pcn-face circle:first-child { fill: #8FA6D9; }
.pcn-face .pcn-eye { fill: #1C2340; }
.pcn-face .pcn-sad { fill: none; stroke: #1C2340; stroke-width: 2.4; stroke-linecap: round; }
.pcn-gt { width: 100%; height: 12px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.pcn-gt i { display: block; height: 100%; width: 0; background: var(--violet-bright); border-radius: 999px; }
.pcn-gv { font: 800 17px var(--serif); color: var(--gold); min-height: 22px; }
.pcn-cap { font-size: 13px; font-weight: 700; color: var(--dim); text-align: center; }

/* the gross drink */
.pcn-cups { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.pcn-cup { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pcn-cup svg { width: 76px; height: 88px; }
.pcn-glass { fill: rgba(255, 255, 255, .06); stroke: #C9C3B8; stroke-width: 2; }
.pcn-liq { fill: #8A3A1E; }
.pcn-cup b { font: 800 15px var(--serif); color: var(--gold); min-height: 20px; }
.pcn-cup span { font-size: 13px; font-weight: 700; color: var(--dim); line-height: 1.2; }

@media (min-height: 780px) {
  .pcn-sc { gap: 14px; }
  .pcn-hrs { height: 88px; gap: 5px; }
  .pcn-blk { width: 50px; height: 23px; border-radius: 5px; }
  .pcn-bar { width: 30px; height: 128px; border-radius: 10px; }
  .pcn-bar i { border-radius: 10px; }
  .pcn-dn, .pcn-mw { font-size: 14px; }
  .pcn-face { width: 52px; height: 52px; }
  .pcn-who { height: 54px; }
  .pcn-cup svg { width: 92px; height: 106px; }
}

@media (max-height: 700px) {
  .pcn-sc { gap: 8px; }
  .pcn-col { gap: 5px; padding: 7px 2px 5px; }
  .pcn-hrs { height: 58px; gap: 3px; }
  .pcn-blk { width: 46px; height: 16px; }
  .pcn-bar { height: 76px; }
  .pcn-cup svg { width: 64px; height: 74px; }
}
