/* Planning fallacy lesson. All rules scoped under .plf-* */

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

/* the grid */
.plf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 60px)); gap: 7px; justify-content: center; width: 100%; }
.plf-tile { height: 52px; border-radius: 12px; background: var(--raised); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); color: var(--text); font: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; transition: opacity .2s, background .2s; }
.plf-tile b { font: 800 21px var(--mono); }
.plf-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.plf-tile.done { background: rgba(63, 214, 154, .12); border-color: var(--mint); box-shadow: 0 3px 0 color-mix(in srgb, var(--mint) 50%, #070a14); opacity: .45; pointer-events: none; }
.plf-grid.covered .plf-tile { pointer-events: none; }
.plf-grid.covered .plf-tile b { visibility: hidden; }
.plf-grid.covered .plf-tile::after { content: '?'; font: 800 19px var(--mono); color: var(--faint); grid-area: 1 / 1; }
.plf-grid.covered .plf-tile b { grid-area: 1 / 1; }
.plf-grid.fin .plf-tile { opacity: .3; }
.plf-last { display: flex; align-items: baseline; gap: 10px; padding: 8px 16px; border-radius: 14px; background: var(--surface); border: 2px solid var(--gold); }
.plf-last small { font-size: 13px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.plf-last b { font: 800 20px var(--mono); color: var(--gold); }

/* the guess chips */
.choices.plf-est { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices.plf-est .choice { justify-content: center; font-weight: 800; min-height: 46px; padding: 8px; }

/* guess against time */
.plf-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.plf-br { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.plf-br span { font-size: 14px; font-weight: 700; color: var(--dim); grid-column: 1 / -1; }
.plf-bt { height: 18px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.plf-bt i { display: block; height: 100%; width: 0; border-radius: 9px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.plf-br b { font: 800 17px var(--mono); min-width: 52px; text-align: right; }
.plf-br.g i { background: var(--violet-bright); }
.plf-br.t i { background: var(--gold); }
.plf-br.t b { color: var(--gold); }
.plf-br.dim { opacity: .55; }
.plf-bars:has(.dim) { gap: 6px; }

/* where the time went */
.plf-split { width: 100%; max-width: 340px; }
.plf-cols { height: 150px; display: flex; align-items: flex-end; gap: 4px; padding-bottom: 2px; border-bottom: 2px solid var(--line-strong); }
.plf-cols i { flex: 1; height: 0; border-radius: 4px 4px 0 0; background: var(--violet-bright); transition: height .35s ease-out; }
.plf-cols i.in { height: var(--h); }
.plf-cols i.slow { background: var(--gold); }
.plf-ax { display: flex; justify-content: space-between; font: 700 13px var(--mono); color: var(--faint); padding-top: 4px; }
@media (max-height: 700px) { .plf-cols { height: 120px; } }

/* thoughts aloud */
.plf-think { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.plf-tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.plf-tr span { font-size: 14px; font-weight: 700; color: var(--dim); }
.plf-tr .plf-bt { grid-column: 1 / -1; grid-row: 2; }
.plf-tr b { font: 800 14px var(--mono); color: var(--text); opacity: 0; transition: opacity .3s .6s; }
.plf-tr .plf-bt i { background: var(--gold); }
.plf-think.on .plf-bt i { width: var(--w); }
.plf-think.on b { opacity: 1; }

/* a number line of days */
.plf-line { position: relative; width: calc(100% - 40px); max-width: 300px; height: 80px; margin: 0 20px; }
.plf-track { position: absolute; left: -12px; right: -12px; top: 36px; height: 6px; border-radius: 3px; background: var(--raised); }
.plf-mk { position: absolute; top: 0; width: 90px; margin-left: -45px; height: 80px; transition: opacity .5s; }
.plf-mk b { position: absolute; top: 0; left: 0; right: 0; text-align: center; font: 800 17px var(--mono); }
.plf-mk::before { content: ''; position: absolute; left: 50%; top: 31px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: currentColor; }
.plf-mk span { position: absolute; top: 56px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--dim); }
.plf-mk.g { color: var(--violet-bright); }
.plf-mk.w { color: var(--text); opacity: 0; }
.plf-mk.a { color: var(--gold); opacity: 0; }
.plf-mk.s { color: var(--mint); opacity: 0; }
.plf-three .plf-mk.a,
.plf-line.worst .plf-mk.w, .plf-line.real .plf-mk.a, .plf-line.real .plf-mk.s { opacity: 1; }

/* two panels */
.plf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 360px; }
.plf-pan { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; min-height: 120px; justify-content: center; border-radius: 18px; background: var(--surface); text-align: center; }
.plf-pan small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.plf-pan b { font-size: 16px; line-height: 1.25; }
.plf-pan.in { border: 2px solid var(--violet-bright); }
.plf-pan.out { border: 2px dashed var(--line-strong); opacity: .8; }
.plf-pan.outv { border: 2px solid var(--gold); }

/* Sam's room */
.plf-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.plf-rooms div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.plf-rooms small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.plf-rooms b { font-size: 16px; font-weight: 800; }

/* the quote */
.plf-quote { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 20px; background: var(--surface); border: 2px dashed var(--line-strong); text-align: center; max-width: 340px; }
.plf-quote b { font: 700 21px var(--serif); line-height: 1.3; }
.plf-quote small { font-size: 13px; font-weight: 700; color: var(--dim); }
