/* Pomodoro Technique lesson. All rules scoped under .pom-* */

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

/* the field */
.pom-fbox { position: relative; width: 100%; max-width: 340px; border-radius: 18px; background: #16203a; border: 2px solid var(--line-strong); overflow: hidden; }
.pom-field { display: block; width: 100%; height: auto; }
.pom-cover { position: absolute; inset: 0; display: grid; place-items: center; background: #16203a; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pom-cover span { font: 800 44px var(--mono); color: var(--faint); }
.pom-fbox.hide .pom-cover { opacity: 1; }
.pom-msg { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px; background: #1f2945; animation: pom-slide .3s ease-out; }
.pom-msg small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.pom-msg b { font-size: 20px; }
.pom-msg span { font-size: 18px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--violet); color: #fff; align-self: flex-start; }
@keyframes pom-slide { from { transform: translateY(-100%); } to { transform: none; } }
@media (max-height: 700px) { .pom-fbox { max-width: 280px; } }

.choices.pom-count { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choices.pom-count .choice { justify-content: center; font: 800 18px var(--mono); min-height: 52px; padding: 6px; }
.choices.pom-reply { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices.pom-reply .choice { justify-content: center; font-weight: 800; min-height: 52px; }

/* what the message cost */
.pom-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.pom-br { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.pom-br span { font-size: 14px; font-weight: 700; color: var(--dim); }
.pom-br b { font: 800 16px var(--mono); }
.pom-bt { grid-column: 1 / -1; grid-row: 2; display: flex; height: 22px; border-radius: 11px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.pom-bt i { display: block; height: 100%; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.pom-bars.on .pom-bt i { width: var(--w); }
.pom-bt i.c, .pom-key i.c { background: var(--violet-bright); }
.pom-bt i.m, .pom-key i.m { background: var(--red); }
.pom-key { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--dim); font-weight: 700; }
.pom-key span { display: flex; align-items: center; gap: 6px; }
.pom-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.pom-key i.b { background: var(--mint); }

/* the cycle */
.pom-cycle { display: flex; align-items: flex-end; gap: 4px; width: 100%; max-width: 350px; }
.pom-cycle div { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.pom-cycle div.in { opacity: 1; transform: none; }
.pom-cycle .w { flex: 5; }
.pom-cycle .w img { width: 100%; max-width: 54px; }
.pom-cycle .b { flex: 1.4; }
.pom-cycle .b::before { content: ''; display: block; width: 100%; height: 14px; border-radius: 4px; background: var(--mint); }
.pom-cycle .l { flex: 3.4; }
.pom-cycle .l::before { content: ''; display: block; width: 100%; height: 28px; border-radius: 6px; background: var(--mint); }
.pom-cycle b { font: 800 13px var(--mono); }
.pom-cycle .b b, .pom-cycle .l b { color: var(--mint); }
.pom-cycle .l b { font-size: 12px; white-space: nowrap; }

/* the pad */
.pom-pad { width: 100%; max-width: 300px; padding: 16px 18px; border-radius: 6px 6px 16px 16px; background: #f4ecd8; color: #2a2418; box-shadow: 0 10px 24px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(80,110,180,.25) 33px 34px); }
.pom-pad small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8a3c2c; }
.pom-line { font: 600 19px var(--serif); min-height: 26px; }
.pom-line::before { content: '- '; color: #8a3c2c; }
.pom-line.new { color: #b9ae96; }
.pom-line.new.in { color: #2a2418; animation: pom-write .4s ease-out; }
@keyframes pom-write { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

