/* Coach G workout-round runner. Pair with tf-runner.js. The stage (900 or 320 wide, 300 tall) scales to the box. */
.tf-runner{position:relative;width:100%;aspect-ratio:3/1;overflow:hidden;border-radius:18px;
  background:linear-gradient(#f4f7fc,#e8eef7 88%,#dfe7f3)}
.tf-runner.is-square{aspect-ratio:320/300}
/* with a room, the end-of-round fade goes to dark navy, not the light page colour */
.tf-runner.room-simple,.tf-runner.room-detailed{background:#1b2149}
/* hosts often set img{max-width:100%}; the runner's layers are zero-width boxes, so that would shrink every picture to nothing */
.tf-runner img{max-width:none}
.tf-run-stage{position:absolute;left:0;top:0;height:300px;transform-origin:0 0;transition:opacity .4s}
.tf-run-stage.fade{opacity:0}
.tf-run-back{position:absolute;left:0;top:0;height:300px;width:0}
.tf-run-tile{position:absolute;top:0;width:1200px;height:300px}
.tf-run-tile svg{display:block}
.tf-run-wall{display:block;width:100%;height:100%}
.tf-run-murals{position:absolute;left:0;top:0;width:0;height:300px}
.tf-run-mural{position:absolute;top:30px;width:200px;height:200px;opacity:.95}
.room-detailed .tf-run-mural{top:6px;width:120px;height:120px}
.tf-run-floorimg{position:absolute;left:0;top:246px;height:80px;width:0}
.tf-run-floorimg img{position:absolute;top:0;display:block}
.room-detailed .tf-run-ground{display:none}
.room-detailed .tf-run-shadow{background:radial-gradient(closest-side,rgba(0,0,0,.45),transparent)}
.tf-run-prop{position:absolute;height:auto;opacity:.72}
/* the studio floor, like the hi-fi render: slate rubber tiles, a white edge line, the green turf lane he runs on, dark rubber */
.tf-run-floor{position:absolute;left:0;right:0;top:224px;bottom:0;
  background:linear-gradient(#3a4470 0,#323b63 26px,#e9edf5 26px 28px,#5cb94a 28px,#45a03d 66px,#2a3152 66px,#232945)}
.tf-run-ground{position:absolute;left:0;top:270px;height:3px;
  background:repeating-linear-gradient(90deg,#131730 0 34px,transparent 34px 60px);opacity:.22}
.room-simple .tf-run-ground{top:260px;height:22px;opacity:.9;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='22'%3E%3Cpath d='M40 19 L52 19 L66 4 L54 4 Z' fill='%23f4f6fa'/%3E%3C/svg%3E") repeat-x}
.tf-run-world{position:absolute;left:0;top:0;height:300px;width:0}
.tf-run-item{position:absolute;height:auto;transition:opacity .18s}
.tf-run-item.gone{opacity:0}
.tf-run-coach{position:absolute;left:104px;top:38px;width:192px;height:240px}
.tf-run-body{position:absolute;inset:0}
.tf-run-body img{position:absolute;left:0;top:0;width:192px;height:240px;opacity:0}
.tf-run-body img.w{width:288px}
.tf-run-body img.on{opacity:1}
.tf-run-shadow{position:absolute;left:61px;top:226px;width:70px;height:10px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(19,23,48,.28),transparent)}
.room-simple .tf-run-shadow{background:radial-gradient(closest-side,rgba(0,0,0,.45),transparent)}
.tf-run-say{position:absolute;left:300px;top:58px;padding:7px 14px;border-radius:999px;background:#131730;color:#e8eef7;
  font:600 15px/1 "DM Sans",system-ui,sans-serif;letter-spacing:.02em;opacity:0;transform:translateY(6px);
  transition:opacity .2s,transform .2s;white-space:nowrap}
.room-simple .tf-run-say,.room-detailed .tf-run-say{background:#e8eef7;color:#131730}
.is-square .tf-run-say{left:auto;right:12px;top:34px}
.tf-run-say.on{opacity:1;transform:none}
.tf-run-bar{position:absolute;left:24px;right:24px;top:16px;height:4px;border-radius:4px;background:rgba(19,23,48,.08);overflow:hidden}
.is-square .tf-run-bar{left:12px;right:12px;top:10px}
.room-simple .tf-run-bar{top:34px}
.room-detailed .tf-run-bar{background:rgba(255,255,255,.2)}
.is-square.room-simple .tf-run-say{top:48px}
.tf-run-bar i{position:absolute;inset:0;background:#8EA5CF;transform-origin:0 50%;transform:scaleX(0)}
.tf-runner img.tf-run-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1;transition:opacity .2s}
.tf-runner img.tf-run-poster.gone{opacity:0;pointer-events:none}
