/* Floating, non-interactive original cartoon on the actual Python editor page. */
.lwc-roaming-actor[hidden]{display:none!important}
.lwc-roaming-actor{
  position:fixed;top:0;left:0;width:158px;height:313px;z-index:160;
  pointer-events:none;display:flex;align-items:flex-end;justify-content:center;
  opacity:0;transition:opacity .2s ease;will-change:transform;
  contain:layout style;
}
.lwc-roaming-actor.lwc-visible{opacity:1}
.lwc-roaming-actor.lwc-target-offscreen{opacity:0}
.lwc-roaming-rig{width:100%;height:238px;overflow:visible;filter:drop-shadow(0 5px 8px #1c45625c)}
.lwc-roaming-rig .limb{transform-box:view-box;transition:transform .24s ease-out; }
.lwc-roaming-rig #left-leg,.lwc-roaming-rig #right-leg{transition:none!important}
.lwc-roaming-actor.lwc-walking .lwc-roaming-rig{animation:lwc-roaming-bob .35s ease-in-out infinite alternate}
@keyframes lwc-roaming-bob{from{translate:0 0}to{translate:0 -3px}}
.lwc-roaming-bubble{
  position:absolute;bottom:238px;left:50%;transform:translateX(-50%);
  background:#fafdffed;color:#214e71;border:1px solid #b8d8f1;
  border-radius:11px;min-width:130px;max-width:190px;width:max-content;
  padding:6px 9px;box-shadow:0 5px 16px rgba(42,94,143,.2);
  font:600 11px/1.3 system-ui,sans-serif;text-align:center;
  overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
  overflow-wrap:anywhere;
}
.lwc-roaming-code-focus[hidden]{display:none!important}
.lwc-roaming-code-focus{
  position:absolute;box-sizing:border-box;pointer-events:none;
  z-index:5;background:rgba(58,165,250,.12);border-left:3px solid #1c88d5;
  border-radius:3px;box-shadow:inset 0 1px 0 rgba(32,126,203,.18);
}
.speakerWalkControl{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;
 background:#e6f3ff;color:#285e89;border:1px solid #bdddf5;font-size:12px;font-weight:700;cursor:pointer}
.speakerWalkControl input{accent-color:#1c75bf;cursor:pointer}
@media(max-width:720px){
 .lwc-roaming-actor{width:104px;height:233px;z-index:160}
 .lwc-roaming-rig{height:158px}
 .lwc-roaming-bubble{bottom:157px;min-width:92px;max-width:132px;font-size:9px;line-height:1.25;padding:5px}
 .speakerWalkControl{flex:1 1 130px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
 .lwc-roaming-actor,.lwc-roaming-rig .limb{transition:none!important}
 .lwc-roaming-actor.lwc-walking .lwc-roaming-rig{animation:none}
}

/* The panel currently being explained is subtly highlighted; ordinary editor controls stay usable. */
.codeCard.lwc-teacher-targeted,
.ioToggleCard.lwc-teacher-targeted{
  outline:2px solid #4da4df;
  outline-offset:2px;
  box-shadow:0 0 0 5px rgba(62,151,215,.1);
  transition:outline-color .3s,box-shadow .3s;
}

/* When a mobile keyboard or landscape mode leaves little vertical room. */
.lwc-roaming-actor.lwc-compact{width:84px;height:177px}
.lwc-roaming-actor.lwc-compact .lwc-roaming-rig{height:124px}
.lwc-roaming-actor.lwc-compact .lwc-roaming-bubble{
  bottom:123px;min-width:72px;max-width:115px;
  font-size:9px;line-height:1.2;padding:4px 5px;
}

/* Visibly select the precise stdout/stderr text currently being spoken.
   The browser Selection API supplies the range; this styles that selection. */
#ppOut::selection, #ppErr::selection,
#ppOut *::selection, #ppErr *::selection {
  background:#ffd166;
  color:#142236;
}
#ppOut.lwc-result-reading, #ppErr.lwc-result-reading {
  outline:2px solid #f4bc42;
  outline-offset:-2px;
}

/* Visualize uses the same animated Champuter artwork inside its own presenter rail. */
body.lwc-viz-active .lwc-roaming-actor{display:none!important}
