/* One game and one action at a time. The static fallback shows the payoff. */
.team-demo{min-width:0;width:100%;max-width:600px;margin:auto;background:#fffdf9;border:1px solid #e3ced5;border-radius:24px;padding:20px;box-shadow:0 18px 55px #63344d13;color:#3d1838}
.team-demo__tabs{display:flex;gap:4px;padding:4px;background:#f5edf0;border-radius:12px;margin-bottom:16px}
.team-demo__tabs button{flex:1;min-width:0;border:0;border-radius:8px;background:transparent;padding:11px 5px;font:inherit;font-size:11px;font-weight:600;color:#896e7a;cursor:pointer;transition:background .2s,color .2s}
.team-demo__tabs button[aria-selected=true]{background:#4b2342;color:white;box-shadow:0 2px 5px #4b23421c}
.team-demo button:focus-visible,.team-demo a:focus-visible{outline:3px solid #a35280;outline-offset:4px}
.team-demo__stage{border-radius:15px;overflow:hidden}
.team-demo__panel{height:255px;padding:24px 20px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center}
.team-demo__panel[hidden]{display:none}
.team-demo__quip{background:#fbe3e8}.team-demo__draw{background:#fff0c7}.team-demo__spectrum{background:#efe6f7}
.playground .team-demo__panel h2{font:650 clamp(23px,2.35vw,31px)/1.13 Fraunces,Georgia,serif;letter-spacing:-.03em;margin:12px 0 17px}
.team-demo__answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.team-demo__answer{min-width:0;background:#fffdfa;border:2px solid transparent;border-radius:10px;padding:13px 10px;text-align:left}
.team-demo__answer b{font-size:14px;line-height:1.35;font-weight:600;display:block}
.team-demo__votes{display:block;color:#b1476e;font-size:10px;margin-top:10px;transition:opacity .4s}
.team-demo__winner{transition:border-color .4s,box-shadow .4s}
.team-demo[data-step="2"] .team-demo__winner{border-color:#b8486d;box-shadow:0 3px 0 #b8486d}
.team-demo[data-step="0"] .team-demo__votes{opacity:0}
.team-demo__payoff{font-size:11px;color:#795569;line-height:1.5;min-height:18px;margin:16px 0 0;transition:opacity .4s}
.team-demo__paper{position:relative;width:100%;background:#fffdf5;border-radius:10px;height:140px;flex-shrink:0;overflow:hidden}
.team-demo__paper svg{height:100%;width:100%}
.team-demo__pencil{position:absolute;left:54%;top:52%;font-size:29px;color:#603348;opacity:0}
.team-demo__ink{stroke-dasharray:1;stroke-dashoffset:0}
.team-demo[data-step="0"] .team-demo__ink{stroke-dashoffset:1}
.team-demo[data-step="1"] .team-demo__ink{animation:team-demo-draw 2s ease-out both}
.team-demo[data-step="1"] .team-demo__pencil{animation:team-demo-pencil 2s ease-in-out both}
.team-demo:not([data-step="2"]) .team-demo__draw .team-demo__payoff{opacity:0}
.team-demo__dial{display:block;width:260px;max-width:100%;height:130px;overflow:visible}
.team-demo__needle{transform-origin:140px 120px;transition:transform 1.3s ease-in-out}
.team-demo[data-step="0"] .team-demo__needle{transform:rotate(-55deg)}
.team-demo[data-step="1"] .team-demo__needle{transform:rotate(12deg)}
.team-demo__poles{display:flex;width:90%;justify-content:space-between;font-size:9px;margin-top:-4px}
.team-demo__people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-top:12px}
.team-demo__person{position:relative;min-width:0;border-radius:11px;background:#e6dce0;aspect-ratio:4/3}
.team-demo__person img,.team-demo__person video{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
.team-demo[data-paused=true] *{animation-play-state:paused!important}
@keyframes team-demo-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes team-demo-pencil{0%{opacity:1;transform:translate(-20px,-45px)}25%{transform:translate(12px,-30px)}60%{transform:translate(-20px,15px)}85%{opacity:1;transform:translate(4px,28px)}100%{opacity:0;transform:translate(10px,30px)}}
@media(max-width:1100px) and (min-width:801px){.team-demo{padding:15px}.team-demo__tabs button{font-size:9px}.team-demo__panel{padding:20px 13px 14px}.team-demo__answer b{font-size:12px}}
@media(max-width:600px){.team-demo{padding:14px;border-radius:20px}.team-demo__tabs button{font-size:10px;padding:11px 4px}.team-demo__panel{height:245px;padding:20px 12px}.playground .team-demo__panel h2{font-size:28px}.team-demo__answer b{font-size:13px}.team-demo__people{gap:6px}.team-demo__payoff{font-size:10px}}
@media(max-width:360px){.team-demo__tabs button{font-size:8px}.team-demo__answer{padding:12px 7px}.team-demo__answer b{font-size:11px}.playground .team-demo__panel h2{font-size:25px}}


.team-demo__target{opacity:0;transition:opacity .4s}.team-demo[data-step="2"] .team-demo__target{opacity:.45}
.team-demo[data-step="0"] .team-demo__answer b{animation:team-demo-answer 1.8s steps(20,end) both}.team-demo[data-step="0"] .team-demo__answer:nth-child(2) b{animation-delay:.25s}
@keyframes team-demo-answer{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

.team-demo__panel{animation:team-demo-enter .3s ease-out both}.team-demo__quip{justify-content:center}.team-demo__spectrum{justify-content:center}.team-demo__draw .team-demo__payoff{margin-top:8px}
@keyframes team-demo-enter{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

@media(prefers-reduced-motion:reduce){.team-demo *{animation:none!important;transition:none!important}}
