/* Try it yourself: Review Gate + SOP Workbench. Namespaced pl- so it never touches the case-study styles. */
.play { --pl-ease: cubic-bezier(.22, 1, .36, 1); --pl-panel: #232c32; --pl-paper2: #eae0d2; --pl-soft: #4b5155; --pl-brown: #5d5142; --pl-red: #823528; --pl-flag: #f0a58f; --pl-ok: #9fd0ad; padding-block: clamp(3.5rem, 6vw, 7rem); border-top: 1px solid var(--line); }
.play-header { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.play-intro { max-width: 46rem; margin-top: 1.6rem; color: var(--muted); font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.6 var(--serif); }
.pl-game { padding-block: clamp(2.5rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.pl-game > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: end; margin-bottom: 2.2rem; }
.pl-game > header h3 { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.6rem)/1.02 var(--serif); letter-spacing: -.04em; }
.pl-game > header h3 em { color: var(--gold); font-weight: 400; }
.pl-game > header p { margin: 0; color: var(--muted); max-width: 56ch; }
.pl-num { display: block; margin-bottom: .8rem; color: var(--gold); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; }
.pl-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--gold); border-radius: 2px; background: transparent; color: var(--paper); font-size: .95rem; transition: background .3s var(--pl-ease), color .3s var(--pl-ease); }
.pl-btn:hover { background: var(--gold); color: var(--ink); }
.pl-btn.is-solid { background: var(--gold); color: var(--ink); }
.pl-btn.is-solid:hover { background: var(--paper); }
.pl-btn:disabled { opacity: .45; }
.pl-btn kbd { font: inherit; font-size: .75rem; border: 1px solid currentColor; border-radius: 2px; padding: 0 .35rem; }
.pl-live { min-height: 3.2rem; margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.pl-live strong { color: var(--paper); font-weight: 500; }
.pl-good { color: var(--pl-ok); }
.pl-bad { color: var(--pl-flag); }
.pl-noscript { color: var(--muted); max-width: 60ch; }

/* ---- Review Gate ---- */
.pl-gate { display: grid; grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr) minmax(15rem, 19rem); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.pl-rules ol { list-style: none; padding: 0; margin: .9rem 0 0; border-top: 1px solid var(--line); }
.pl-rules li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .4rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.45; transition: background .4s var(--pl-ease); }
.pl-rules li b { color: var(--gold); font-weight: 500; font-size: .8rem; letter-spacing: .08em; }
.pl-rules li.is-hit { background: rgba(217, 182, 139, .12); }
.pl-progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.pl-dots { display: flex; gap: .35rem; }
.pl-dots span { width: 1.4rem; height: 3px; background: var(--line); transition: background .4s var(--pl-ease); }
.pl-dots span.is-done { background: var(--gold); }
.pl-card { background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 2.4vw, 2rem); border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .55s var(--pl-ease), opacity .45s var(--pl-ease); }
.pl-card :focus-visible { outline-color: #6e4024; }
.pl-card.is-in { transform: translateY(1.5rem) scale(.98); opacity: 0; }
.pl-card.is-approve { transform: translateX(60%) rotate(8deg); opacity: 0; }
.pl-card.is-reject { transform: translateX(-60%) rotate(-8deg); opacity: 0; }
.pl-agent { display: flex; align-items: center; gap: .75rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-soft); }
.pl-agent svg { width: 2.1rem; height: 2.1rem; flex: none; }
.pl-card h4 { margin: 1.1rem 0 0; font: 400 clamp(1.55rem, 2.6vw, 2.3rem)/1.08 var(--serif); letter-spacing: -.03em; }
.pl-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.1rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid #cfc8b8; font-size: .92rem; }
.pl-card dt { color: var(--pl-soft); }
.pl-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.pl-why { margin: 1rem 0 0; font: italic 400 1.08rem/1.5 var(--serif); color: var(--pl-soft); }
.pl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.1rem; }
.pl-choices .pl-btn { width: 100%; }
.pl-choices .is-reject-btn { border-color: var(--pl-flag); }
.pl-choices .is-reject-btn:hover { background: var(--pl-flag); color: var(--ink); }
.pl-slip { margin-top: .9rem; background: var(--pl-paper2); color: var(--ink); padding: 1.1rem 1rem 1.6rem; font-size: .84rem; line-height: 1.5; font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x; }
.pl-slip-head { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-soft); padding-bottom: .6rem; border-bottom: 1px dashed #9a9384; }
.pl-slip ol { list-style: none; padding: 0; margin: 0; }
.pl-slip li { padding: .55rem 0; border-bottom: 1px dashed #b9b2a2; animation: pl-print .5s var(--pl-ease) both; }
.pl-slip li .pl-row { display: flex; justify-content: space-between; gap: .6rem; }
.pl-slip li small { display: block; color: var(--pl-soft); font-size: .78rem; }
.pl-slip .pl-empty { color: var(--pl-brown); font: italic 400 .98rem/1.5 var(--serif); }
.pl-ok-tag { color: #2f6b45; font-weight: 600; }
.pl-bad-tag { color: var(--pl-red); font-weight: 600; }
.pl-end { background: var(--pl-panel); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.6rem); }
.pl-score { font: 400 clamp(3.4rem, 7vw, 6.4rem)/.9 var(--serif); letter-spacing: -.06em; margin: .4rem 0 0; }
.pl-score em { color: var(--gold); }
.pl-end p { color: var(--paper); font: 400 1.15rem/1.5 var(--serif); max-width: 32rem; margin: 1rem 0 0; }
.pl-end .pl-btn { margin-top: 1.4rem; }
@keyframes pl-print { from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* ---- SOP Workbench ---- */
.pl-bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.pl-bench-head { display: flex; justify-content: space-between; gap: 1rem; }
.pl-inbox { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .65rem; }
.pl-sop { background: var(--paper); color: var(--ink); padding: .85rem .85rem .75rem; border-radius: 3px; cursor: grab; transition: transform .45s var(--pl-ease), box-shadow .45s var(--pl-ease), opacity .3s var(--pl-ease); animation: pl-drop .6s var(--pl-ease) both; }
.pl-sop :focus-visible { outline-color: #6e4024; }
.pl-sop:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.pl-sop.is-dragging { opacity: .4; }
.pl-sop p { margin: 0; font: 400 1.15rem/1.25 var(--serif); letter-spacing: -.01em; }
.pl-to { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.pl-to button { min-height: 44px; flex: 1 1 0; min-width: 5.2rem; border: 1px solid #b9b2a2; border-radius: 2px; background: transparent; color: var(--ink); font-size: .8rem; letter-spacing: .03em; transition: background .25s var(--pl-ease); }
.pl-to button:hover { background: var(--pl-paper2); }
.pl-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin-top: .9rem; }
.pl-lane { padding: 1rem .85rem; min-height: 24rem; border-left: 1px solid var(--line); transition: background .3s var(--pl-ease); }
.pl-lane:first-child { border-left: 0; }
.pl-lane.is-over { background: rgba(217, 182, 139, .10); }
.pl-lane .pl-num { margin-bottom: .3rem; font-size: .75rem; }
.pl-lane h4 { margin: 0; font: 400 1.45rem/1.08 var(--serif); letter-spacing: -.03em; }
.pl-lane h4 em { color: var(--gold); }
.pl-lane-sub { margin: .3rem 0 0; font-size: .8rem; color: var(--muted); }
.pl-lane ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
.pl-placed { border: 1px solid var(--line); padding: .6rem .65rem .4rem; border-radius: 2px; animation: pl-drop .5s var(--pl-ease) both; }
.pl-placed p { margin: 0; font-size: .88rem; line-height: 1.35; }
.pl-placed .pl-verdict { margin-top: .35rem; font-size: .78rem; line-height: 1.4; }
.pl-placed .pl-verdict.is-same { color: var(--pl-ok); }
.pl-placed .pl-verdict.is-diff { color: var(--pl-flag); }
.pl-move { min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: .25em; }
.pl-gen { margin-top: 1.1rem; }
.pl-spec { margin-top: 2.2rem; background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: 3px; animation: pl-drop .7s var(--pl-ease) both; }
.pl-spec .pl-label { color: var(--pl-brown); }
.pl-spec h4 { margin: .6rem 0 0; font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.02 var(--serif); letter-spacing: -.04em; }
.pl-spec h4 em { color: #6e4024; }
.pl-spec-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid #cfc8b8; }
.pl-spec h5 { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-brown); font-weight: 500; }
.pl-spec ul { margin: .6rem 0 0 1rem; padding: 0; font-size: .9rem; line-height: 1.5; }
.pl-agree { margin: 1.4rem 0 0; font: italic 400 1.1rem/1.5 var(--serif); color: var(--pl-soft); }
@keyframes pl-drop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pl-progress .pl-label { white-space: nowrap; }
@media (max-width: 1320px) {
  .pl-gate { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); }
  .pl-rules { grid-column: 1 / -1; }
  .pl-rules ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); column-gap: 2rem; }
}
@media (max-width: 1000px) {
  .pl-game > header { grid-template-columns: 1fr; }
  .pl-gate { grid-template-columns: 1fr; }
  .pl-bench { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pl-lanes { grid-template-columns: 1fr; }
  .pl-lane { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .pl-lane:first-child { border-top: 0; }
  .pl-spec-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .play *, .play *::before, .play *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
