/* Timeboxing lesson. All rules scoped under .tbx-* */

.tbx-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tbx-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.tbx-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)); }
.tbx-hero.art img { width: 300px; max-height: 36vh; }
.tbx-hero.small img { max-height: 18vh; }

/* the box */
.tbx-box { display: grid; grid-template-columns: 46px 1fr; gap: 8px; width: 100%; max-width: 320px; height: 316px; }
.tbx-axis { position: relative; }
.tbx-axis span { position: absolute; right: 0; transform: translateY(50%); font: 700 13px var(--mono); color: var(--faint); }
.tbx-col { position: relative; border-left: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); border-radius: 0 0 14px 14px; background: linear-gradient(to top, rgba(123,92,253,.06), transparent); }
.tbx-stack { position: absolute; left: 6px; right: 6px; bottom: 0; top: 0; display: flex; flex-direction: column-reverse; }
.tbx-blk { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px; border-radius: 8px; background: #5f4ad0; border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--bg); background-clip: padding-box; overflow: hidden; animation: tbx-in .25s ease-out; transition: opacity .4s, filter .4s; }
.tbx-blk span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tbx-blk em { font: 700 12px var(--mono); font-style: normal; color: rgba(255,255,255,.75); white-space: nowrap; }
.tbx-blk.seen { background: #c98c1b; }
.tbx-blk.seen span::before { content: '● '; }
.tbx-blk.doing { box-shadow: 0 0 0 2px var(--text); }
.tbx-blk.cut { opacity: .22; filter: grayscale(1); }
.tbx-blk.half { filter: grayscale(.8); opacity: .5; }
.tbx-blk.cut span, .tbx-blk.half span { text-decoration: line-through; }
@keyframes tbx-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.tbx-lid { position: absolute; left: -10px; right: -10px; height: 0; border-top: 3px dashed var(--gold); z-index: 2; }
.tbx-lid b { position: absolute; right: 12px; top: -22px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); background: var(--bg); padding: 0 4px; border-radius: 4px; }
.tbx-box.fixed .tbx-lid { border-top-style: solid; border-top-width: 4px; }
.tbx-end { position: absolute; left: -10px; right: -10px; height: 0; border-top: 3px solid var(--red); opacity: 0; transition: bottom .4s, opacity .3s; z-index: 2; }
.tbx-end.on { opacity: 1; }
.tbx-end b { position: absolute; left: 12px; top: -22px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #f08a8a; background: var(--bg); padding: 0 4px; border-radius: 4px; }
.tbx-cut { position: absolute; left: -2px; right: -2px; bottom: 60%; top: 0; background: repeating-linear-gradient(135deg, rgba(216,85,85,.12) 0 8px, transparent 8px 16px); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 1; }
.tbx-box.cutting .tbx-lid { animation: tbx-chop .45s ease-in; }
.tbx-box.cut .tbx-cut { opacity: 1; }
@keyframes tbx-chop { 0% { transform: translateY(-30px); } 70% { transform: translateY(4px); } 100% { transform: none; } }
@media (max-height: 700px) { .tbx-box { height: 260px; } .tbx-blk span { font-size: 12px; } }

/* stacking the order */
.tbx-bank { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice.tbx-chip { justify-content: center; text-align: center; font-size: 14px; font-weight: 700; min-height: 46px; padding: 8px; gap: 4px; }
.choice.tbx-chip i { font-style: normal; color: var(--gold); }
.choice.tbx-chip.used { opacity: .25; pointer-events: none; }

/* two plans */
.tbx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; }
.tbx-two div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); text-align: center; }
.tbx-two div.box { border-color: var(--gold); }
.tbx-two small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.tbx-two b { font-size: 18px; }
.tbx-two span { font-size: 14px; color: var(--dim); }
.tbx-two span.bad { color: #f08a8a; font-weight: 700; }

