/* Adapted from 반짝수리 style.css: .pbar/.pmain/.pleft/.pright/.actbar, 2026-11-13.
   Scoped to review play; touch and small-screen overrides follow in review.css. */
/* 실험대 */
#play { background: #f6efe0; display: none; }
#play.on { display: flex; flex-direction: column; }
.pbar { height: 46px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #fffaf0; border-bottom: 2px solid #ead9b3; }
.pbar h2 { margin: 0; font-size: 20px; color: #7c2d12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.pbar button { border: 2px solid #f3c88a; background: #fff; border-radius: 10px; padding: 4px 9px; font-size: 14px; white-space: nowrap; height: 34px; }
.pbar button:disabled { opacity: .45; }
.pbar .cp { border-color: var(--green); color: #14532d; }
.pbar .cp b { background: var(--green); color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 5px; font-size: 13px; }
.prog { flex: 1; min-width: 60px; height: 10px; background: #fde7c7; border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fbbf24, #f97316); transition: width .4s; }
.safe { font-size: 13px; color: var(--green); white-space: nowrap; }
.safe.bad { color: var(--red); font-weight: 700; }
.clock { font-family: 'Jua', sans-serif; font-size: 19px; background: var(--night); color: #fde68a; border-radius: 10px; padding: 3px 10px; min-width: 64px; text-align: center; white-space: nowrap; }
.clock.over { background: #92400e; }
.clock.off { font-size: 13px; background: #e5e7eb; color: var(--soft); font-family: inherit; }
.pmain { flex: 1; display: flex; min-height: 0; }
.pleft { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.stage { position: relative; flex: 1; min-height: 0; background: #2b2f3a; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#todo { position: absolute; right: 10px; top: 10px; max-width: 64%; background: #fde047; color: #3b2a00; border-radius: 12px; padding: 7px 14px; font-size: 16px; line-height: 1.45; box-shadow: 0 3px 0 #ca8a04; z-index: 3; }
#todo:empty { display: none; }
#todo.ok { background: #bbf7d0; color: #14532d; box-shadow: 0 3px 0 #16a34a; }
#todo .n { display: inline-block; background: #3b2a00; color: #fde047; border-radius: 99px; padding: 0 8px; margin-right: 6px; font-size: 14px; }
#hud { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.93); border-radius: 12px; padding: 6px 12px; font-size: 14px; line-height: 1.6; z-index: 3; max-width: 34%; }
#hud:empty { display: none; }
#hud .bar { display: inline-block; width: 70px; height: 9px; background: #e5e7eb; border-radius: 9px; vertical-align: middle; margin: 0 6px; overflow: hidden; }
#hud .bar i { display: block; height: 100%; background: #f59e0b; }
#camReset { position: absolute; right: 10px; bottom: 10px; z-index: 3; border: 0; background: rgba(60,45,30,.82); color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 14px; }
.lbl { position: absolute; transform: translate(-50%, -100%); background: rgba(17,24,39,.82); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; pointer-events: none; z-index: 2; }
.lbl.num { background: #2563eb; font-weight: 700; font-size: 15px; padding: 2px 9px; }
.lbl.sel { background: #f59e0b; }
.lbl.hot { background: #dc2626; }
.ctrls { flex: none; background: #fffaf0; border-top: 2px solid #ead9b3; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-height: 50px; max-height: 128px; overflow-y: auto; }
.ctrls:empty { display: none; }
.cg { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cg > .cl { font-size: 13px; color: #92400e; background: #fde7c7; border-radius: 8px; padding: 3px 8px; }
.cg button { border: 2px solid #f3c88a; background: #fff; border-radius: 10px; padding: 4px 10px; font-size: 14px; min-height: 32px; }
.cg button.on { background: #fde047; border-color: #ca8a04; }
.cg button.warnb { border-color: #fca5a5; }
.cg select { font-size: 14px; padding: 4px 6px; border: 2px solid #f3c88a; border-radius: 10px; max-width: 190px; }
.cg.choice { border: 2px dashed #f59e0b; border-radius: 12px; padding: 2px 6px; }
.pright { width: var(--rightw); flex: none; display: flex; flex-direction: column; background: #fffaf0; border-left: 2px solid #ead9b3; min-height: 0; }
.log { flex: 1 1 30%; min-height: 70px; overflow-y: auto; padding: 8px 10px; border-bottom: 2px dashed #f3c88a; }
.ln { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.ln .face { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #f3ead7; flex: none; }
.ln b.nmw { font-size: 13px; color: #92400e; display: block; }
.ln p { margin: 2px 0 0; background: #fff; border: 1.5px solid #e9d8b4; border-radius: 4px 14px 14px 14px; padding: 6px 10px; font-size: 15px; line-height: 1.5; }
.ln.mecard { flex-direction: row-reverse; }
.ln.me b.nmw { text-align: right; }
.ln.me p { background: #dcfce7; border-color: #86efac; border-radius: 14px 4px 14px 14px; }
.ln.got p { background: #eff6ff; border-color: #bfdbfe; }
.ln.alarm p { background: #fef2f2; border-color: #fca5a5; }
.act { flex: 1 1 60%; min-height: 0; overflow-y: auto; padding: 10px 12px; position: relative; }
.act .who { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.act .who img { width: 34px; height: 34px; object-fit: contain; background: #f3ead7; border-radius: 9px; }
.act .who b { font-size: 14px; color: #92400e; }
.act .kind { display: inline-block; font-size: 12px; background: #e0e7ff; color: #3730a3; border-radius: 6px; padding: 1px 7px; margin-bottom: 4px; }
.act .kind.w { background: #fce7f3; color: #9d174d; }
.act .kind.p { background: #ecfccb; color: #3f6212; }
.act .q { font-size: 18px; line-height: 1.55; margin: 2px 0 8px; font-weight: 700; }
.opt { display: block; width: 100%; text-align: left; border: 2px solid #e5d5b0; background: #fff; border-radius: 12px; padding: 8px 12px; margin: 6px 0; font-size: 16px; line-height: 1.45; }
.opt.sel { border-color: var(--blue); background: #eff6ff; }
.opt.right { border-color: var(--green); background: #f0fdf4; }
.opt.wrong { border-color: var(--red); background: #fef2f2; }
.opt:disabled { color: inherit; }
.fb { margin-top: 8px; font-size: 15px; line-height: 1.5; border-radius: 10px; }
.fb:empty { display: none; }
.fb.ok { background: #f0fdf4; color: #14532d; padding: 8px 10px; }
.fb.no { background: #fef2f2; color: #7f1d1d; padding: 8px 10px; }
.fb.warn { background: #fffbeb; color: #78350f; padding: 8px 10px; }
.live { margin-top: 8px; background: #eff6ff; border-radius: 10px; padding: 8px 10px; font-size: 15px; line-height: 1.5; color: #1e3a8a; }
.tsteps { margin: 6px 0; padding: 0; list-style: none; counter-reset: s; }
.tsteps li { position: relative; padding: 4px 0 4px 30px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.tsteps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 99px; background: #e5e7eb; color: #374151; text-align: center; line-height: 22px; font-size: 13px; font-weight: 700; }
.tsteps li.now { color: var(--ink); font-weight: 700; }
.tsteps li.now::before { background: var(--volt); }
.tsteps li.done { color: var(--green); }
.tsteps li.done::before { content: '✓'; background: #bbf7d0; color: #14532d; }
.hintbox { margin-top: 8px; background: #fefce8; border: 2px solid #fde68a; border-radius: 10px; padding: 6px 10px; font-size: 15px; line-height: 1.5; }
.hintbox b { color: #a16207; }
.actbar { flex: none; display: flex; gap: 6px; padding: 8px 10px; border-top: 2px solid #ead9b3; background: #fff7e6; align-items: center; }
.actbar .big.go { margin-left: auto; min-width: 116px; padding: 9px 18px; }
.hintb { border: 2px solid #f59e0b; background: #fff; color: #92400e; border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.hintb.lockd { border-style: dashed; border-color: #d1d5db; color: #9ca3af; background: #f9fafb; }
.hintb.ready { background: #fef3c7; animation: glow2 1s ease-in-out infinite alternate; }
@keyframes glow2 { from { box-shadow: 0 0 0 0 rgba(245,158,11,.6); } to { box-shadow: 0 0 0 6px rgba(245,158,11,0); } }
.skipb { border: 2px solid #c4b5fd; background: #fff; color: #5b21b6; border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.hintb[hidden], .skipb[hidden] { display: none; }
.rbar { position: sticky; top: -10px; margin: -10px -12px 8px; height: 22px; background: #fef3c7; overflow: hidden; z-index: 2; }
.rbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fcd34d; animation: rb linear forwards; }
.rbar span { position: relative; font-size: 12px; padding-left: 10px; line-height: 22px; color: #92400e; }
@keyframes rb { to { width: 100%; } }
